资源预览内容
第1页 / 共9页
第2页 / 共9页
第3页 / 共9页
第4页 / 共9页
第5页 / 共9页
第6页 / 共9页
第7页 / 共9页
第8页 / 共9页
第9页 / 共9页
亲,该文档总共9页全部预览完了,如果喜欢就下载吧!
资源描述
程序流程图1、creat( );/创建链表airticket *psps-num!=0head=NULLhead=pspEnd=pspEnd-next=pspEnd-next=NULL2、save( );/保存文档(fp=fopen(“1.txt”)return;head1fwrite(head1,sizeof(airticket,1,fp);head1=head-nextfclose(fp);3、tuipiao( );/退票airticket*tail,*temp=newairtickettemp-next=NULL:coutnext(fp=fopen(“1.txt”,“b”)head=NULL(fread(temp,sizeoofcoutnext=NULL;head=tail=temp;head-nextcoutnext=NULL;head=tail=temp;head-nextcoutnextIFheaddeletetail,tempIF6、search_day( );/按日期查询int day,m;(fp=fopen(“1.txt”IFcoutnext;IF7、change( );/修改航班信息int num;(fp=fopen(1.txt”)cout=0&i=1&j=2;break;IFIFcout“按错键,请重新选择”;
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号