飞机订票,退票查询等系统

时间:2013-09-05 12:39:38
【文件属性】:
文件名称:飞机订票,退票查询等系统
文件大小:84KB
文件格式:DOC
更新时间:2013-09-05 12:39:38
订票,退票,显示,航班等 } void list_menu() { cout<next=NULL; wait_end->pre=NULL; wait_head=wait_end; wait_head->count=0; fp=fopen("wait.txt","r"); fread(wait_head,sizeof(wait),1,fp); for(i=1;i<=wait_head->count;i++) { fread(tempw,sizeof(wait),1,fp); wait_end->next=tempw; tempw->pre=wait_end; tempw->next=NULL; wait_end=tempw; } } void list_piao() { int i,j; for(i=1;i<=m-1;i++) { if(a[i].seat[0]!=n) { cout<>x;cout<=m); cout<next!=NULL) q=head->next; else { q=NULL; cout<<"飞机空,无预订票 !"<date=q->plane; cout<<"日期 :"<date<seat<name; cout<id; q=q->next;x++; if (x % 3 ==0) ch=getch(); } cout<>i; if (i<1 || i>=m) { cout<>j; if (j<1 || j>n) { cout<date=i; cout<date<next=NULL; cout<<"请输入个人信息"<>tempw->name; cout<<"ID号 : ";cin>>tempw->id; cout<<"电话 :";cin>>tempw->phone; tempw->seat=y; tempw->plane=x; wait_end->next=tempw; tempw->pre=wait_end; wait_end=wait_end->next; cout<count++; write_to_file(); } void show_wait() { wait *tempw; tempw=wait_head->next; if (tempw==NULL) cout<name<<" - "; tempw=tempw->next; } } void add_information(node *head,int x,int y) { node *temp; temp=new node; temp->pre=NULL; temp->next=NULL; cout<<"请输入个人信息"<>temp->name; cout<<"ID号 : ";cin>>temp->id; temp->seat=y; temp->plane=x; temp->next=head->next; temp->pre=head; if (head->next!=NULL) head->next->pre=temp; head->next=temp; write_to_file(); cout<>p->name; do{ q=q->next; if ( (q!=NULL) && (comp(q,p)) ) { cout<date=q->plane; cout<<"Located!"<name; cout<id; cout<seat; cout<plane; cout<date<>ch; if (ch=='Y' || ch=='y') { t1=q->plane; t2=q->seat; a[t1].seat[t2]=0; a[t1].seat[0]--; r=q;q=q->pre; r->pre->next=r->next; if(r->next!=NULL) r->next->pre=r->pre; delete(r); cout<<"**** 记录删除成功 ! ****"; write_to_file(); tempw=wait_head; for(i=0;icount;i++) { tempw=tempw->next; if(tempw==NULL) break; if((tempw->plane==t1) && (tempw->seat==t2)) { strcpy(tempw3->name,tempw->name); strcpy(tempw3->phone,tempw->phone); cout<name; cout<id<plane==1) add_information(head1,1,tempw->seat); if(tempw->plane==2) add_information(head2,2,tempw->seat); if(tempw->plane==3) add_information(head3,3,tempw->seat); tempw2=tempw->pre; tempw2->next=tempw->next; if(tempw->next==NULL) wait_end=tempw2; else tempw->next->pre=tempw2; delete(tempw); wait_head->count--; write_to_file(); cout<name<<"已经成功订票,已经由电话"<phone<<"通知了"< 立即下载

网友评论

  • 汗呢。。压根就没有关联到民航系统后台,这样的资源还要4个下载分数,仅限于大学大二的水平
  • 不错哦,有我想要的功能。谢谢