Description: 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
To Search:
File list (Check if you may need any files):
school\Debug\school.exe
......\.....\school.ilk
......\.....\school.obj
......\.....\school.pch
......\.....\school.pdb
......\.....\stu.obj
......\.....\test.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\school.cpp
......\school.dsp
......\school.dsw
......\school.ncb
......\school.opt
......\school.plg
......\stu.cpp
......\stu.h
......\test.cpp
......\新建文本文档.txt
......\Debug
school