文件名称:school
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:380.73kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
计思路
◆根据程序的功能要求,本科生,第二学位生,硕士生,博士生同属于学生,同时,所有的学生都有编号,姓名,年纪,班级,级别,论文题目,指导老师和成绩几个属性,并都有输入,输出功能,而且不同的学生,相应的数据成员及函数成员都不同,因而本程序以Students类为虚基类,Bachelor,Second-degree,Master,Doctor四个类为派生类。为了便于操作,又定义了一个Operate友元类,实现程序要求的各种功能。
◆同时把输入输出函数定义为虚函数,各个派生类分别定义自己的输入输出函数。并且各派生类从基类的构造函数那里继承来的数据初始值都为0,再过各自的构造函数自动生成级别的差异。
◆在基类中定义了静态的数据成员Number,在类外定义它的值为1000,作为各个成员的学号的基数,在成员生成的过程中,通过构造函数使各成员的学号自动加1。
◆再输入输出程序方面,本程序提供了文件输入输出和基本输入输出两套系统,以实现各对象的数据在程序外的保存和装入,也便于查看对象的数据。
◆在操作类中,根据程序的需要,定义了Clear ,Add,Delete,Modify(int)Save Load,find等函数分别实现要求的按姓名或者编号显示,查找,增加,删除和保存各类学生的信息。
-Design ideas
◆ According to the procedure of the functional requirements, undergraduate, second degree students, graduate students, doctoral students belong to the same time, all students have the number, name, age, class, level, thesis topic, the teacher and the results of several properties, and have input, output, and different students, the corresponding data members and function members are different, so the procedures to Students class virtual base class, Bachelor, Second-degree, Master, Doctor derive four classes of class. For ease of operation, but also defines a Operate friend classes to achieve the procedural requirements of the various functions.
◆ while the input-output function is defined as virtual functions, respectively, each derived class to define their own input and output functions. Health classes and factions from the base class constructor inherited initial value data to 0, another constructor automatically generates their level of differentiation.
◆ def
◆根据程序的功能要求,本科生,第二学位生,硕士生,博士生同属于学生,同时,所有的学生都有编号,姓名,年纪,班级,级别,论文题目,指导老师和成绩几个属性,并都有输入,输出功能,而且不同的学生,相应的数据成员及函数成员都不同,因而本程序以Students类为虚基类,Bachelor,Second-degree,Master,Doctor四个类为派生类。为了便于操作,又定义了一个Operate友元类,实现程序要求的各种功能。
◆同时把输入输出函数定义为虚函数,各个派生类分别定义自己的输入输出函数。并且各派生类从基类的构造函数那里继承来的数据初始值都为0,再过各自的构造函数自动生成级别的差异。
◆在基类中定义了静态的数据成员Number,在类外定义它的值为1000,作为各个成员的学号的基数,在成员生成的过程中,通过构造函数使各成员的学号自动加1。
◆再输入输出程序方面,本程序提供了文件输入输出和基本输入输出两套系统,以实现各对象的数据在程序外的保存和装入,也便于查看对象的数据。
◆在操作类中,根据程序的需要,定义了Clear ,Add,Delete,Modify(int)Save Load,find等函数分别实现要求的按姓名或者编号显示,查找,增加,删除和保存各类学生的信息。
-Design ideas
◆ According to the procedure of the functional requirements, undergraduate, second degree students, graduate students, doctoral students belong to the same time, all students have the number, name, age, class, level, thesis topic, the teacher and the results of several properties, and have input, output, and different students, the corresponding data members and function members are different, so the procedures to Students class virtual base class, Bachelor, Second-degree, Master, Doctor derive four classes of class. For ease of operation, but also defines a Operate friend classes to achieve the procedural requirements of the various functions.
◆ while the input-output function is defined as virtual functions, respectively, each derived class to define their own input and output functions. Health classes and factions from the base class constructor inherited initial value data to 0, another constructor automatically generates their level of differentiation.
◆ def
(系统自动生成,下载前可以参看下载内容)
下载文件列表
school/Debug/school.exe
school/Debug/school.ilk
school/Debug/school.obj
school/Debug/school.pch
school/Debug/school.pdb
school/Debug/stu.obj
school/Debug/test.obj
school/Debug/vc60.idb
school/Debug/vc60.pdb
school/school.cpp
school/school.dsp
school/school.dsw
school/school.ncb
school/school.opt
school/school.plg
school/stu.cpp
school/stu.h
school/test.cpp
school/新建文本文档.txt
school/Debug
school
school/Debug/school.ilk
school/Debug/school.obj
school/Debug/school.pch
school/Debug/school.pdb
school/Debug/stu.obj
school/Debug/test.obj
school/Debug/vc60.idb
school/Debug/vc60.pdb
school/school.cpp
school/school.dsp
school/school.dsw
school/school.ncb
school/school.opt
school/school.plg
school/stu.cpp
school/stu.h
school/test.cpp
school/新建文本文档.txt
school/Debug
school
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.