文件名称:shiyan1
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个简单的学生成绩录入及显示系统,具体要求如下:
定义一个成绩结构体:至少包括C++、数学、英语;
定义一个学生结构体:至少包括姓名、性别、年龄、成绩结构体成员;
定义一个学生成绩录入函数,用于对学生进行成绩录入;采用动态分配的内存(new 和delete),对学生信息进行存储,要根据指定的输入数量进行内容分配;
重载函数的使用:定义二个比较函数,函数名为comp,该函数即可以对姓名进行比较也可以对成绩进行比较。
默认参数值的函数的使用:定义一个带有默认值参数的成绩排序函数,这个默认值参数用于区分是对那门成绩排序,如果使用默认值则表示对所有学生的C++成绩排序,否则根据传递的参数确定按什么排序,排序时要用到定义的重载函数comp;
定义一个学生数组,将排序结果存入该数组中。-Write a simple student achievement entry and display system, the specific requirements are as follows:
Define a score structure: at least include C++, mathematics, English
Define a student structure: at least include name, gender, age, performance structure members
Define a student achievement entry functions for the students results entry using dynamically allocated memory (new and delete), stores information for students, according to the number specified input content distribution
The use of overloaded functions: Define two comparison functions, function named comp, the function names that can be compared against results can also be compared.
default parameter values using the function: Define a parameter with a default value results sort function, this parameter is used to distinguish the default value is sort achievements that door, if you use the default value means that all students sort results in C++, or accor
定义一个成绩结构体:至少包括C++、数学、英语;
定义一个学生结构体:至少包括姓名、性别、年龄、成绩结构体成员;
定义一个学生成绩录入函数,用于对学生进行成绩录入;采用动态分配的内存(new 和delete),对学生信息进行存储,要根据指定的输入数量进行内容分配;
重载函数的使用:定义二个比较函数,函数名为comp,该函数即可以对姓名进行比较也可以对成绩进行比较。
默认参数值的函数的使用:定义一个带有默认值参数的成绩排序函数,这个默认值参数用于区分是对那门成绩排序,如果使用默认值则表示对所有学生的C++成绩排序,否则根据传递的参数确定按什么排序,排序时要用到定义的重载函数comp;
定义一个学生数组,将排序结果存入该数组中。-Write a simple student achievement entry and display system, the specific requirements are as follows:
Define a score structure: at least include C++, mathematics, English
Define a student structure: at least include name, gender, age, performance structure members
Define a student achievement entry functions for the students results entry using dynamically allocated memory (new and delete), stores information for students, according to the number specified input content distribution
The use of overloaded functions: Define two comparison functions, function named comp, the function names that can be compared against results can also be compared.
default parameter values using the function: Define a parameter with a default value results sort function, this parameter is used to distinguish the default value is sort achievements that door, if you use the default value means that all students sort results in C++, or accor
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shiyan1\bin\Debug\shiyan1.exe
.......\main.cpp
.......\obj\Debug\main.o
.......\shiyan1.cbp
.......\shiyan1.layout
.......\bin\Debug
.......\obj\Debug
.......\bin
.......\obj
shiyan1