A few days ago the teacher said let me change a little project I have done before, for the new member practiced hand. Think that when I first touch object-oriented programming, but also need a small case to know and deepen the understanding of C + +, now engaged in this thing, hope can help learn younger brother learn younger sisters, Hee-so.
Just finished reading "Effective C + +" and "more effective C + +", the original code for some expansion.
Cut a few pictures first.
1. Main interface
2. Display Menu
3. Add Menu
Code
Engine section
Kexie class
Abstract base class, member variables contain the contents of the Membership information Registration Form , member functions
Including
Gets the information for the member variable,
Sets the value of the member variable,
Display information,
Determine if the information input is valid,
Save the information to (file),
Load information (from a file),
Show sub-class information
Group category
Inherits from the Kexie class, calls the Kexie class function to manage its own information, and has the corresponding subclass function
Main function Section
Main function
Including
Show member Information
Increase member information
Delete Member information
Find member Information
Funlib function Library
Including
Show Membership Information Menu
Show All _ all members
Show All _c++ Group members
Show All _ps Group members
Show All _java Group members
Show All _ site group members
Show all _ Embedded Group members
Add Membership Information Menu
Added _c++ Group members
Added _ps Group members
Added _java Group members
Add _ Site Group members
Add _ Embedded Group member
Delete Membership Information Menu
(By the school number) to delete the association member
Delete all Members
Find membership Information Menu
Search by the number of Science Association members
(from text, database) to load Association member information
Storage of Science Association member information (to text, database)
Code address
C + + Member management system
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
C + + Small Project-University Association management system