資源簡介
航空訂票管理系統 機場訂票管理系統 c++

代碼片段和文件信息
#include
using?namespace?std;
#include?
#include
#include“edit_fly_infm.h“
#include“edit_book_ticket.h“
void?main()
{
???int?ch;
???flight?f;
???order?t;
loop:cout<<“航班訂票系統\n\n“;
cout<<“??1??輸入航班信息???????5??刪除航班信息 9??修改訂票信息\n“;
cout<<“??2??查看所有航班信息???6??訂票 10??退票\n“;
cout<<“??3??查詢航班信息???????7??查看所有訂票信息 11??清屏\n“;
cout<<“??4??修改航班信息???????8??查詢訂票信息 12??退出系統\n“;
cout<<“請選擇(0-10):“< ???cin>>ch;
???cout< switch(ch)
{
case?1:
f.input_flight();
goto?loop;
case?2:
f.output_all_flight();
goto?loop;
case?3:
f.find_the_flight();
goto?loop;
case?4:
f.edit_the_flight();
goto?loop;
case?5:
f.delete_the_flight();
goto?loop;
case?6:
t.book_ticket();
goto?loop;
case?7:
t.see_all_order();
goto?loop;
case?8:
t.find_the_order();
goto?loop;
case?9:
t.edit_the_order();
goto?loop;
case?10:
t.return_ticket();
goto?loop;
case?11:
system(“cls“);
goto?loop;
case?12:
exit(0);
default:
cout<<“輸入有誤!請重新輸入“< goto?loop;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5772??2007-06-17?13:23??航班源文件\edit_book_ticket.h
?????文件??????11833??2007-06-29?16:25??航班源文件\edit_fly_infm.h
?????文件????????480??2007-06-11?13:31??航班源文件\flight.dat
?????文件??????????4??2007-06-11?13:31??航班源文件\fly_msg_sum.dat
?????文件????????427??2007-06-17?13:23??航班源文件\message.h
?????文件????????320??2007-06-11?15:26??航班源文件\order.dat
?????文件??????????4??2007-06-11?15:26??航班源文件\order_msg_sum.dat
?????文件???????1177??2007-06-29?16:33??航班源文件\system.cpp
?????目錄??????????0??2010-12-20?22:01??航班源文件
-----------?---------??----------?-----??----
????????????????20017????????????????????9
- 上一篇:操作系統模擬實現單級目錄的文件系統
- 下一篇:C語言內存管理詳解
評論
共有 條評論