C++汽车租赁管理系统.docxVIP

  • 53
  • 0
  • 约1.21万字
  • 约 25页
  • 2021-12-01 发布于天津
  • 举报
{ { #include iostream #include iomanip #includeconio.h #include string #include fstream //输入/输出文件流类 using namespace std; const int Maxr=100; //最多的客户 const int Maxc=100; //最多的汽车 const int Maxcar=5; //每位客户最多租五辆汽车 class biaozhi { public: int tag; //删除标记1:已删0:未删 int no; //编号 }; //客户类,实现对客户的信息的描述 class Customer :public biaozhi { public: char name[20]; //客户姓名 int borcar[Maxcar]; //所租汽车 Customer。{} //构造函数 char *getname() { return name; } //获取姓名 int gettag() { return tag; } //获取删除标记 int get no() return no; } //获取客户编号 void set name(char n a[]) { strcpy(name,na); } //设置姓名 void delcar() { tag=1; } //设置删

文档评论(0)

1亿VIP精品文档

相关文档