資源簡介
C 課程設計:航空客運訂票系統工程文件 基于C 程序設計基礎,實現了多級用戶管理。乘客用戶可以查詢航班,根據旅客提出的終點站名輸出信息;根據提供的航班號進行購票,可選擇購票數,若有余票,則為用戶辦理訂票;若無余票或余票不滿足用戶需求,可詢問旅客是否登記排隊候補。乘客可退票,若有旅客在次航班候補,可按順序為滿足訂票數的乘客購票。
代碼片段和文件信息
#include
#include
#include
#include
using?namespace?std;
struct?client???
{?/*客戶*/
char?name[20];??????????/*姓名*/
int?ordering_number;????/*訂票量*/
int?grade;?????????????/*艙位等級*/
client?*next;
};
class?airline
{?/*航班信息*/
private:
char?end_station[20];???/*終點站名*/
char?air_num[10];???????/*航班號*/
char?plane_num[10];?????/*飛機號*/
char?day[7];????????????/*飛行日(星期幾)*/
int?people_quota;???????/*乘員定額*/
double?price;???????????/*票價*/
int?more_ticket;????????/*余票量*/
char?passenger_list[50];???/*乘客名單*/
char?waiting_list[50];?????/*等候替補的客戶名單*/???
static?int?number;???????/*航班總數*/
public:
void?print()
{/*打印航班信息*/
????cout<<“??終點站名:“< <<“\n??時間:“<
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????168??2019-04-05?09:52??航空客運訂票系統\Debug\001a.txt
?????文件??????????0??2019-04-05?09:52??航空客運訂票系統\Debug\001b.txt
?????文件????????101??2019-03-26?17:44??航空客運訂票系統\Debug\002a.txt
?????文件??????????0??2019-03-26?17:44??航空客運訂票系統\Debug\002b.txt
?????文件?????????55??2019-03-26?17:45??航空客運訂票系統\Debug\003a.txt
?????文件??????????0??2019-03-26?17:45??航空客運訂票系統\Debug\003b.txt
?????文件????????163??2019-04-05?09:52??航空客運訂票系統\Debug\航班信息.txt
?????文件?????106496??2018-06-14?19:24??航空客運訂票系統\Debug\航空客運訂票系統.exe
?????文件?????689360??2018-06-14?19:24??航空客運訂票系統\Debug\航空客運訂票系統.ilk
?????文件?????764928??2018-06-14?19:24??航空客運訂票系統\Debug\航空客運訂票系統.pdb
?????文件???15990784??2018-06-14?20:30??航空客運訂票系統\ipch\航空客運訂票系統-ce97bbe\航空客運訂票系統-b9bb3766.ipch
?????文件??????12978??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\a.cpp
?????文件?????266401??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\a.obj
?????文件????????754??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\cl.command.1.tlog
?????文件???????9648??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\CL.read.1.tlog
?????文件????????498??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\CL.write.1.tlog
?????文件??????????2??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件??????????2??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件??????????2??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件??????????2??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件??????????2??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件??????????2??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件???????1762??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件???????3784??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件???????1096??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\li
?????文件????????452??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\mt.command.1.tlog
?????文件????????228??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\mt.read.1.tlog
?????文件????????438??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\mt.write.1.tlog
?????文件????????658??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\rc.command.1.tlog
?????文件????????410??2018-06-14?19:24??航空客運訂票系統\航空客運訂票系統\Debug\rc.read.1.tlog
............此處省略27個文件信息
- 上一篇:C++個人通訊錄管理系統
- 下一篇:《圖靈叢書-明解C語言》(高清完整)
評論
共有 條評論