欢迎来到天天文库
浏览记录
ID:5952949
大小:84.00 KB
页数:16页
时间:2017-12-29
《车友信息管理系统》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、#include#include#include#include#include#include#include#include#include#includeusingnamespacestd;#defineSTR_WIDE100//字符串长度#defineTOTAL_NUM100//车友最大个数intcarmem_num=0;//全部车友个数-0classCar_people;//车友类
2、voidoperate(Car_peoplea[]);//一级菜单stringinput_key();//管理员密码输入函数voidedit_key();//管理员用户名及密码修改函数intadministor_login();//管理员登录函数voidadministor_operate(Car_peoplea[]);//管理员二级菜单voiduser_operate(Car_peoplea[]);//普通用户二级菜单voidcar_add(Car_peoplea[]);//增加新加入会员信息voidcar_delete(Car_peoplea[]);//删除退会会员信息vo
3、idout_age(Car_peoplea[]);//按照年龄从小到大显示车友信息voidout_money(Car_peoplea[]);//按照车款查询车友信息voidout_total();//计算会员总数voidout_tynum(Car_peoplea[]);//计算某一车辆品牌的车友总数voidout_woman(Car_peoplea[]);//显示某一性别车友的信息voidt_output();//for循环中outputvoidshelter(char*c);////密码暗文输入classwastetime//耗时类{public:wastetime(){wh
4、oletime=0;periodtime=0;}~wastetime(){}voidtimebegin(){wholetime=GetTickCount();}voidprinttime(){periodtime=GetTickCount()-wholetime;cout<<"所耗时间:"<5、,stringj,stringdag,stringag,stringclo,stringcpa,stringcco):party_name(pna),nick_name(nna),sex(s),job(j),drive_age(dag),age(ag),car_logo(clo),car_paid(cpa),car_colour(cco){}~Car_people(){};voidinput();voidoutput();voidfriendsave_file(Car_peoplea[]);//存为文件voidfriendload_file(Car_peoplea[]);//读6、取文件stringparty_name;//会员名stringnick_name;//昵称stringsex;//性别stringjob;//职业stringdrive_age;//驾龄stringage;//年龄stringcar_logo;//车辆品牌stringcar_paid;//车款stringcar_colour;//车颜色};Car_people::Car_people(){party_name="";nick_name="";sex="";job="";drive_age="";age="";car_logo="";car_paid="";car_colour=7、"";}voidCar_people::input(){boolcheck=false;cout<<"请输入会员名:";cin>>party_name;cout<<"请输入昵称:";cin>>nick_name;do{cout<<"请输入性别:";cin>>sex;if((sex!="男")&&(sex!="女")){cout<<"输入有误,请重新输入:";}else{check=true;}}while(!check);cout<<"请输入职业:";cin>>job;check=fal
5、,stringj,stringdag,stringag,stringclo,stringcpa,stringcco):party_name(pna),nick_name(nna),sex(s),job(j),drive_age(dag),age(ag),car_logo(clo),car_paid(cpa),car_colour(cco){}~Car_people(){};voidinput();voidoutput();voidfriendsave_file(Car_peoplea[]);//存为文件voidfriendload_file(Car_peoplea[]);//读
6、取文件stringparty_name;//会员名stringnick_name;//昵称stringsex;//性别stringjob;//职业stringdrive_age;//驾龄stringage;//年龄stringcar_logo;//车辆品牌stringcar_paid;//车款stringcar_colour;//车颜色};Car_people::Car_people(){party_name="";nick_name="";sex="";job="";drive_age="";age="";car_logo="";car_paid="";car_colour=
7、"";}voidCar_people::input(){boolcheck=false;cout<<"请输入会员名:";cin>>party_name;cout<<"请输入昵称:";cin>>nick_name;do{cout<<"请输入性别:";cin>>sex;if((sex!="男")&&(sex!="女")){cout<<"输入有误,请重新输入:";}else{check=true;}}while(!check);cout<<"请输入职业:";cin>>job;check=fal
此文档下载收益归作者所有