C++ Project for nersery garden
| File Name: | C++ Project for nersery garden.txt - Download Original |
| Tags: | |
| Views: | 356 |
| Uploaded by: | andy |
| Last Changed: | Jan 13, 2001 01:20 PM |
| Rating: | Not yet rated |
| Report document: | Click here |
#include #include #include const int maxf =50; const int maxo =30; const int maxp =30; const int maxor =30; ////////////////////////////////////////////////////////////////////////////////////////////// class plant{ public: plant(); void ReadPlant(); void displayPLANT(int); void plfamily(char f[]); void plNAME (char n[]); void modifyPlant(); void deleteplant(); int plID(int); int checkQ(int); int findplant(int); //void SwapPosPlant(int,int); void ShiftPos(int,int); void SortFamily(); void SortName(); int findfamily(); int rangefamily(); void removestock(int,int); void displayallplants (); float returnprize(int); private: char name[20]; char family[20]; char description [100]; int id; int type; char colour[20]; int size; int stock; int sold; int garden; float price; int NOelem; // order findplant[maxo]; }; ////////////////////////////////////////////////////////////////////////////////////////////// class order { public: order(); void PlaceOrder(plant); void displayOrder(plant); void checkorder (plant); void makeinvoice (int,int,int,plant); private: char oname[20]; char ofamily[20]; char odescription [100]; int oid; int otype; char ocolour[20]; int osize; int ostock; int osold; int ogarden; float oprice; int NOord; //plant p[maxf]; }; ////////////////////////////////////////////////////////////////////////////////////////////// order ord[maxo]; ////////////////////////////////////////////////////////////////////////////////////////////// order::order() { NOord=0; ostock=0; oprice=0; } ////////////////////////////////////////////////////////////////////////////////////////////// void order::PlaceOrder(plant p) { int x,stockctr; float price; char ans; cout |
Join Now!
|
License Information:
This work is copyrighted. It has been uploaded to Slashdoc by its copyright owner or their agent and may not be reproduced without their permission. Slashdoc and its affiliates respect the intellectual property of others. If you believe that your work has been copied in a way that constitutes copyright infringement, please contact us.
Comments:
C++ Project for nersery garden.txt -
