飞机售票系统流程图

上传人:新** 文档编号:499083813 上传时间:2023-11-28 格式:DOC 页数:9 大小:75KB
返回 下载 相关 举报
飞机售票系统流程图_第1页
第1页 / 共9页
飞机售票系统流程图_第2页
第2页 / 共9页
飞机售票系统流程图_第3页
第3页 / 共9页
飞机售票系统流程图_第4页
第4页 / 共9页
飞机售票系统流程图_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《飞机售票系统流程图》由会员分享,可在线阅读,更多相关《飞机售票系统流程图(9页珍藏版)》请在金锄头文库上搜索。

1、文档供参考,可复制、编制,期待您的好评与关注! 程序流程图1、creat( );/创建链表airticket *psps-num!=0head=NULLhead=pspEnd-next=pspEnd=pspEnd-next=NULL2、save( );/保存文档fwrite(head1,sizeof(airticket,1,fp);head1=head-nextfclose(fp); (fp=fopen(“1.txt”)return;head13、tuipiao( );/退票airticket*tail,*temp=newairticket(fp=fopen(“1.txt”,“b”)coutn

2、ext=NULL:head=tail=temp;head-nexttemp=newairticket;fclose(fp);!headcout“数据为空”endl;temp=tail=head; FORfclose(fp);4、watch( );/查看航班信息airticket*tail,*temp=newairticket;coutnext=NULL;head=tail=temp;head-nextcout“出错,请检查文件是否存在fp=fopen(“1.txt”)(fread(temp,sizeof(shead=NULLOJ是虽早deletetail,temp;5、search_num(

3、);/按航班号查询int num;Fp(fopen(“1.txt”)coutnext=NULL;head=tail=temp;head-nexttemp=newairticket;coutnextdeletetail,temp IF6、search_day( );/按日期查询int day,m;(fp=fopen(“1.txt”cout“出错,检查文件是否存在(fread(tmep,sizeo IFtmep=newairticket;coutnext;deletd tail,tmep IF7、change( );/修改航班信息int num;(fp=fopen(1.txt”)cout“出错,请检查文件是否存在”cout“请输入所要修改的航班信息”(fread(&teme,sizeof()i+temp.num=numcout“修改后的相应信息”endl;fclose(fp);8、fn( );/输出函数int i=1;icoutendl=0&i=5i=1;i=2dingpiao( );breaki=3tuipiao( ),break;IFwatch( );break;coutendl;9、main( );/主函数int j=1;icout=1&j=2i=1cout“按错键,请重新选择”; IFCharf =“2005”; IF;break; /

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号