标题:求帮帮忙解决问题
只看楼主
晓宁
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2011-9-7
结帖率:71.43%
已结贴  问题点数:10 回复次数:2 
求帮帮忙解决问题
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
搜索更多相关主题的帖子: 解决问题 
2011-09-07 13:16
hoho568
Rank: 5Rank: 5
等 级:职业侠客
帖 子:101
专家分:378
注 册:2009-7-14
得分:7 
easy
2011-09-07 13:29
晓宁
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2011-9-7
得分:0 
回复 2楼 hoho568
你可以帮我解决这问题吗?谢谢
2011-09-07 17:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-349370-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.387189 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved