文件名称:shiyan1
-
所属分类:
- 标签属性:
- 上传时间:2013-10-27
-
文件大小:144.42kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个简单的学生成绩录入及显示系统,具体要求如下:
定义一个成绩结构体:至少包括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
shiyan1/main.cpp
shiyan1/obj/Debug/main.o
shiyan1/shiyan1.cbp
shiyan1/shiyan1.layout
shiyan1/bin/Debug
shiyan1/obj/Debug
shiyan1/bin
shiyan1/obj
shiyan1
shiyan1/main.cpp
shiyan1/obj/Debug/main.o
shiyan1/shiyan1.cbp
shiyan1/shiyan1.layout
shiyan1/bin/Debug
shiyan1/obj/Debug
shiyan1/bin
shiyan1/obj
shiyan1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.