运输企业管理信息系统设计说明书内容摘要:

)。 cout endl 你想过户的车辆信息如下 : endl endl。 car1carinfo。 cout () endl。 ()。 cout endl 请在下面输入过户后的车主信息 : endl。 cout endl 新车主姓名 :。 cin name。 cout endl 身份证号码 :。 cin postcard。 ifstream car4(())。 assert(car4)。 string str。 getline(car4, str)。 getline(car4, str)。 getline(car4, str)。 car4 str str kind str str color str str no。 ()。 carinfo = car\\+postcard+.txt。 ofstream car3(())。 assert(car3)。 car3 车主姓名 : name endl endl 身份证号 : postcard endl endl 车型 : kind endl endl 颜色 : color endl endl 17 车牌号 : no endl endl。 ()。 } temp setiosflags(ios::left) setw(20) postcard no endl。 } ()。 ()。 if (flag) { ofstream car2(d:\\)。 ifstream temp1(d:\\)。 car2 () endl。 cout endl 这辆车过户完成 !!! endl endl。 } else cout endl 这辆车不存在 !!! endl endl。 system(pause)。 } //违章登 记 void manage::vioRecord() { system(cls)。 string no。 string time。 string place。 cout endl 违章登记 endl endl。 cout 请根据提示输入违章车辆相关信息 : endl endl。 cout 车牌号码 :。 cin no。 cout endl 违章时间 :。 cin time。 cout endl 违章地点 :。 cin place。 string voiInfo = car\\+no+.txt。 ofstream voiInfoFile((), ios::app)。 assert(voiInfoFile)。 voiInfoFile setiosflags(ios::left) setw(30) time place endl。 ()。 18 cout endl 违章登记完成 !!! endl endl。 system(pause)。 } //维修信息 void manage::delet() { string no。 string name。 string postcard。 string no1。 system(cls)。 cout endl 旧车报废 endl endl。 cout 请输入你想报废的车辆的车牌号 :。 cin no1。 ifstream car(d:\\)。 if (!car) { cout endl 对不起 ,这辆车不存在 !!! endl endl。 system(pause)。 } ofstream temp(d\\)。 assert(temp)。 bool flag = false。 bool flag1 = true。 while (car postcard no) { if (no == no1) { flag = true。 string carinfo = car\\+postcard+.txt。 ifstream carinfofile(())。 assert(carinfofile)。 cout endl 你想报废的车辆信息如下 : endl endl。 cout () endl endl。 cout 你确定要将它报废吗 (y/n) :。 if (getch() == 39。 n39。 ) { flag1 = false。 break。 } } else { temp setiosflags(ios::left) setw(20) postcard 19 no endl。 } } ()。 ()。 if (flag) { if (flag1) { ofstream car1(d:\\)。 assert(car1)。 ifstream temp1(d:\\)。 assert(temp1)。 car1 () endl。 ()。 ()。 cout endl endl 这辆车已经成功报废 !!! endl endl。 } else { cout endl endl 这辆车你没有报废 !!! endl endl。 } } else { cout endl endl 对不起 , 你想报废的车辆不存在 !!! endl endl。 } system(pause)。 } // //车牌查询 void manage::query_car_no() { system(cls)。 string findNo。 cout endl 根据车牌查询车辆信息 endl endl。 cout 请输入车牌号 :。 cin findNo。 string no。 string postcard。 ifstream car(d:\\)。 if (!car) { 20 cout endl 对不起 ,记录中没有这辆车的相关信息 !!! endl endl。 system(pause)。 return。 } bool flag = false。 while (car postcard no) { if (no == findNo) { flag = true。 string carInfo = car\\+postcard+.txt。 ifstream carInfoFile(())。 assert(carInfoFile)。 cout endl 你查询的车辆信息如下 : endl endl。 cout () endl。 ()。 vio_query(no)。 //违章 break。 } } ()。 if (flag) { cout endl 信息查询完成 !! endl endl。 } else { cout endl 对不起 ,这个车辆的信息不存在 !!! endl endl。 } system(pause)。 } //车主查询 void manage::query_car_men() { system(cls)。 cout endl 车主查询 endl endl。 cout 请输入车主的身份证号码 :。 string postcard1。 cin postcard1。 string postcard。 21 string no。 ifstream car(d:\\)。 if (!car) { cout endl 对不起,记录中没有这辆车的信息 !!! endl endl。 system(pause)。 return。 } bool flag = false。 while (car postcard no) { if (postcard == postcard1) { flag = true。 string carInfo = car\\+postcard+.txt。 ifstream carInfoFile(())。 assert(carInfoFile)。 cout endl 你要查询的车辆信息如下 : endl endl。 cout () endl。 ()。 // vio_query(no)。 //违章 break。 } } ()。 if (flag) { cout endl 信息查询完成 !!! endl endl。 } else { cout endl 对不起,记录中没有这辆车的信息 !!! endl endl。 } system(pause)。 } //违章查询 void manage::vio_query(const string no) { st。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。