文件名称:3
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:872byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
/编写一个程序,输入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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.