注册 登录
编程论坛 C++教室

求帮帮忙解决问题

晓宁 发布于 2011-09-07 13:16, 344 次点击
write a program to get an outout as a figure below:

a)They are two classes which ProfileStudent and MarkStudent.
Class MarkStudent is a friend to a class ProfileStudent.

b)class ProfileStudent will have name and ic with data type character as a variable
and set the acces specifier as private. It also has function setData that accept two
variables above as a pointer in the parameter list.

c)While MarkStudent will have mark1, mark2 and total with data type float.The function
is setMark,calculateMark and display.


Output Like This :

Name : Christina
IC : 901221
Mark of test 1 : 90
Mark of test 2 : 55

Name : Jacky
IC : 860912
Mark of test 1 : 80
Mark of test 2 : 56
2 回复
#2
hoho5682011-09-07 13:29
easy
#3
晓宁2011-09-07 17:42
回复 2楼 hoho568
你可以帮我解决这问题吗?谢谢
1