Quick design member of simple management procedures, the basic requirements are as follows:
(1) to define the yuan RMB class, realize the basic operation and display,
(2) define the member member class, said members of basic information, including: number (order automatically generated according to the established membership), name, password, phone, provide input and output information, and other functions,
(3) derived by RMB classes and class member a membership card memberCar class, provide a new member, prepaid phone, balance of consumption and query functions, such as
(4) the main function to define a class memberCar array or chain table, save the membership card, simulate a quick shop membership card management functions, mainly including:
1) new members;
(2) top-up existing members;
(3) the existing member consumption (by password, cannot advance);
(4) the output quickly store the current membership, turnover (,),
CodePudding user response:
So many requirements only 20 points!!!!!!This is where is for code, test,
In general it is impossible to give you the code, has estimated at least 60 lines,
Now people are not honest
Hint:
The class RMB {
Double [] p;
Void the add (const double&);
Void minus (const double&);
//...
};