| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 344 人关注过本帖
标题:求帮帮忙解决问题
只看楼主 加入收藏
晓宁
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
快速回复:求帮帮忙解决问题
数据加载中...
 
   



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

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