文件名称:cPP1
下载
别用迅雷、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.
要求:
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