文件名称:3
介绍说明--下载内容均来自于网络,请自行研究使用
/编写一个程序,输入N个学生数据,包括学号、姓名、成绩,要求输出这些学生数据并计算平均分。
//要求:
//设计一个学生类Stud,除了包括no(学号)、name(姓名)和deg(成绩)数据成员外,有两个静态变量
// sum和num,分别存放总分和人数,另有两个普通成员函数setdata()和disp(),分别用于给数据成
// 员赋值和输出数据成员的值,另有一个静态成员函数avg(),它用于计算平均分。在main()函数中
// 定义了一个对象数组用于存储输入的学生数据。-/ Write a program, enter N student data, including Student ID, name, accomplishments, these students require the output data and calculate the average.// Requirements:// design a class of students Stud, in addition, including no (Student ID), name (name), and deg (results) data members, there are two static variables// sum and num, respectively, the total score and the number of storage , and another two ordinary member functions setdata () and disp (), respectively, to the data used as// staff assignment and the members of the value of the output data, while a static member function avg (), it is used to calculate the average. In the main () function// define an array of objects used to store student data input.
//要求:
//设计一个学生类Stud,除了包括no(学号)、name(姓名)和deg(成绩)数据成员外,有两个静态变量
// sum和num,分别存放总分和人数,另有两个普通成员函数setdata()和disp(),分别用于给数据成
// 员赋值和输出数据成员的值,另有一个静态成员函数avg(),它用于计算平均分。在main()函数中
// 定义了一个对象数组用于存储输入的学生数据。-/ Write a program, enter N student data, including Student ID, name, accomplishments, these students require the output data and calculate the average.// Requirements:// design a class of students Stud, in addition, including no (Student ID), name (name), and deg (results) data members, there are two static variables// sum and num, respectively, the total score and the number of storage , and another two ordinary member functions setdata () and disp (), respectively, to the data used as// staff assignment and the members of the value of the output data, while a static member function avg (), it is used to calculate the average. In the main () function// define an array of objects used to store student data input.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3.txt