Location:
Search - classstudent
Search list
Description: 定义一个学生类,其中有3个数据成员有学号、姓名、年龄,以及若干成员函数。同时编写主函数使用这个类,实现对学生数据的赋值和输出。要求:(1)使用成员函数实现对数据的输入、输出(2)使用构造函数和析构函数实现对数据的初始化。-definition of a category of students, including three members of school data, names, ages, as well as several members of function. While the main function uses the preparation of this category of students achieving the assignment and data output. Requirements : (1) the use of members Function of data input, output (2) the use of constructors and destructors realization of data initialization.
Platform: |
Size: 1004 |
Author: 吴伟 |
Hits:
Description: 定义一个学生类,其中有3个数据成员有学号、姓名、年龄,以及若干成员函数。同时编写主函数使用这个类,实现对学生数据的赋值和输出。要求:(1)使用成员函数实现对数据的输入、输出(2)使用构造函数和析构函数实现对数据的初始化。-definition of a category of students, including three members of school data, names, ages, as well as several members of function. While the main function uses the preparation of this category of students achieving the assignment and data output. Requirements : (1) the use of members Function of data input, output (2) the use of constructors and destructors realization of data initialization.
Platform: |
Size: 1024 |
Author: |
Hits:
Description: 输入学生信息,包括学号/姓名/年龄,依次输入一个学生信息,
格式如下:Scanner
1,张三,20
输入完学生信息后,输入over代表结束
要求:保存所有学生的信息(List),并计算出平均年龄
学生类/Test(main)
封装/多态/重写equals hashCode toString/List/Integer
正则校验/字符串拆封
-Enter student information, including Student ID/name/age, followed by a student enter the information in the following format: Scanner 1, Zhang San, 20 students finished entering information, type over on behalf of the end of requirements: keep all student information (List), and calculate the average age of students in class/Test (main) Package/Multi-state/override equals hashCode toString/List/Integer regular checking/string shrink-wrap
Platform: |
Size: 2048 |
Author: 姬智民 |
Hits: