文件名称:cPP1

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2013-05-08
  • 文件大小:
  • 27kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 大*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。

介绍说明--下载内容均来自于网络,请自行研究使用

定义一个Score类,用以表示学生的各科成绩,其中的属性包括 学号、高等数学成绩、英语成绩、程序设计成绩、平均成绩; 行为包括计算平均成绩;取得平均成绩和取得学号等功能。

要求:

1.为该类定义适当的构造函数、析构函数。构造函数用以初始化学生的各项成绩信息,析构函数用于清除各项信息。

2.给出该类的各个成员函数的实现。

3.在主函数中通过输入某班n个学生的学号和各科成绩实例化出n个Score对象用以表示n个学生的成绩信息(n由用户输入),依次求出各个学生的平均成绩。最后依据平均成绩按照从高到低的顺序输出n个学生的学号。

-Define a Score class, to indicate the student s academic results, which properties include the results of the school, higher math, English, program design, grade point average behavior including the calculation of the grade point average achieved an average performance and achievement Student ID and other features.

Requirements:

Defined for this class appropriate constructor, destructor. The constructor for initialization of the achievements of the student information, the destructor is used to clear all the information.

2 each given the class member functions.

(3) in the main function by entering a class of n the number of students and all subjects instantiate n Score object used to indicate the n student achievement (n entered by the user), calculated the average of each student in turn results. Finally, based on grade point average output in accordance with the descending order of the number of students n.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





c++1\C++作业.doc

....\demo.cpp

....\score.cpp

....\未命名3.cpp

....\类与对象.doc

c++1

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org