实用文档 } return iprice; float getSale() { } char *getGys() { } void setId(int n) { } void setName(char na[]) { } void setCount(int c) { count=c; strcpy(name,na); id=n; return gys; return oprice; } void setBuy(float i) { } void setSale(float o) { } oprice=o; iprice=i; void setGys(char g[]) { }; class gysData 文案大全
} strcpy(gys,g); 实用文档 { private: char name[100]; int phone; public: int id; }; class Commodity { private: spData t[50]; int getid() { } char *getname() { } int getphone() { } void setid() { } void setname(char na[]) { } void setphone() { } cin>>phone; strcpy(name,na); cin>>id; return phone; return name; return id; int n; public: 文案大全
实用文档 void newFile() { int id; int n; char name[50]; int count; float iprice; float oprice; char gys[20]; if(n<0) n=0; int i; spData temp; for(;;n++) { cout<<\商品编号:\cin>>id; if(id==-1) break; t[n].setId(id); cout<<\商品名:\cin>>name; t[n].setName(name); cout<<\库存量:\cin>>count; t[n].setCount(count); cout<<\进价:\cin>>iprice; t[n].setBuy(iprice); cout<<\售价:\cin>>oprice; t[n].setSale(oprice); 文案大全
实用文档 cout<<\供应商:\cin>>gys; t[n].setGys(gys); cout<<\若商品添加完毕,请按-1退出添加!\ } void showData(int i) { } void showData() { int n; cout<<\商品编号\ <
实用文档 } cout<<\商品种类:\void save() { ofstream fout; fout.open(\商品清单.txt\ if(!fout) { } fout<<\商品编号\ \商品名\ \库存量\ \进价\ \售价\
cout<<\return ; \供应商\ \ fout< 百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库C++课程设计-商品管理系统(7)在线全文阅读。
相关推荐: