用c++编写一个程序,要求创建一个类,输入若干个学生的数据,包括学号,姓名和三门课程的成绩;

日期:2019-09-23 04:40:01 人气:1

用c++编写一个程序,要求创建一个类,输入若干个学生的数据,包括学号,姓名和三门课程的成绩;

1、#include #include using namespace std;#define 2、MAX 100class Student{private:string num;string name;double subject[3]; 3、double total;public:void input(Student s[], int);void sort(Student s[], int);void print(Student s[], int);}stu[MAX];void Student::i
    A+
热门评论