文件名称:test10
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2013-04-23
- 文件大小:
- 914kb
- 下载次数:
- 0次
- 提 供 者:
- li***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(1) 编写程序,定义功课类(包括课程编号、课程名称、课程分数);
(2) 编写程序,定义学生类(包括学生编号、学生姓名、年龄、所在年级、班级编号、选修课程;年龄为short,年级为子定义枚举型,选修课程为类成员数组),用函数重载实现学生年龄增加与年级增加;用运算符重载实现课程的选修;
用函数重载实现学生年龄增加与年级增加:所有学生对象的年龄 年级都加1
用运算符重载实现课程的选修:从课程类中给其赋值
(3) 编写程序,定义班级类(包括班级编号、班级名称、班级学生;班级学生为类成员数组),用运算符重载实现给班级添加一个学生、给班级添加一批学生;
-(1) programming, the definition of homework class (including the course number, course name, course grade) (2) write a program, define the class of students (including student ID, student name, age, where the grades, number of classes, elective courses Age short, grade enumeration type defined for the child, elective courses for the class members array), function overloading increase in the student' s age and grade increase elective course operator overloading to achieve function overloading the student' s age increased with the increase in grade : all students object' s age grade plus 1 operator overloading to achieve curriculum of electives: from the course class to its assignment (3) write a program, the definition of class class (class ID, class name, class students class students to class members array) using operator overloading to add a student to the class, add a group of students to the class
(2) 编写程序,定义学生类(包括学生编号、学生姓名、年龄、所在年级、班级编号、选修课程;年龄为short,年级为子定义枚举型,选修课程为类成员数组),用函数重载实现学生年龄增加与年级增加;用运算符重载实现课程的选修;
用函数重载实现学生年龄增加与年级增加:所有学生对象的年龄 年级都加1
用运算符重载实现课程的选修:从课程类中给其赋值
(3) 编写程序,定义班级类(包括班级编号、班级名称、班级学生;班级学生为类成员数组),用运算符重载实现给班级添加一个学生、给班级添加一批学生;
-(1) programming, the definition of homework class (including the course number, course name, course grade) (2) write a program, define the class of students (including student ID, student name, age, where the grades, number of classes, elective courses Age short, grade enumeration type defined for the child, elective courses for the class members array), function overloading increase in the student' s age and grade increase elective course operator overloading to achieve function overloading the student' s age increased with the increase in grade : all students object' s age grade plus 1 operator overloading to achieve curriculum of electives: from the course class to its assignment (3) write a program, the definition of class class (class ID, class name, class students class students to class members array) using operator overloading to add a student to the class, add a group of students to the class
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test10\Debug\test10.obj
......\.....\test100.exe
......\.....\test100.ilk
......\.....\test100.obj
......\.....\test100.pch
......\.....\test100.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\test10.cpp
......\test100.dsp
......\test100.dsw
......\test100.ncb
......\test100.opt
......\test100.plg
......\Debug
test10