文件名称:cPP1
-
所属分类:
- 标签属性:
- 上传时间:2013-05-08
-
文件大小:26.75kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
定义一个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.
要求:
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
c++1/demo.cpp
c++1/score.cpp
c++1/未命名3.cpp
c++1/类与对象.doc
c++1/
c++1/demo.cpp
c++1/score.cpp
c++1/未命名3.cpp
c++1/类与对象.doc
c++1/
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.