資源簡介
題目:飛機訂票系統
題目要求:
(1)可以錄入航班情況
(2)可以查詢某個航線的情況(如,輸入航班號,查詢起降時間,
起飛抵達城市,航班票價,票價折扣,確定航班是否滿倉);
可以輸入起飛抵達城市,查詢飛機航班情況;
(3)可以訂票,如果該航班已經無票,可以提供相關可選擇航班;
(4)可以退票,退票后修改相關數據文件;
(5)當航班信息改變可以修改航班數據文件

代碼片段和文件信息
#include?“FlightCourse.h“
ostream&?operator<<(ostream?&osconst?FlightCourse?&emy)
{
os< os< os< os< os< os< os< os< return?os;
}
FlightCourse::FlightCourse(string?FlightNumberstring?FlyTimestring?LandTimestring?ArriveCityfloat?discountfloat?priceint?flagint?Amount)
{
this->FlightNumber=FlightNumber;
this->FlyTime=FlyTime;
this->LandTime=LandTime;
this->ArriveCity=ArriveCity;
this->price=price;
this->flag=flag;
this->discount=discount;
this->Amount=Amount;
}
FlightCourse::~FlightCourse(void)
{
}
void?FlightCourse::GetFlihtNumber()
{
cout<<“航班號:“;
cin>>FlightNumber;
}
void?FlightCourse::GetFlyTime()
{
cout<<“起飛時間(年,月,日,上下午時間):“;
cin>>FlyTime;
}
void?FlightCourse::GetLandTime()
{
cout<<“降落時間(年,月,日,上下午時間):“;
cin>>LandTime;
}
void?FlightCourse::GetArriveCity()
{
cout<<“抵達地點:“;
cin>>ArriveCity;
}
void?FlightCourse::GetDiscount()
{
cout<<“折扣(%):“;
cin>>discount;
}
void?FlightCourse::GetPrice()
{
cout<<“價格:“;
cin>>price;
}
void?FlightCourse::GetFlag()
{
cout<<“狀態(0?未滿?1?已滿):“;
cin>>flag;
}
void?FlightCourse::GetAmount()
{
cout<<“數量是:“;
cin>>Amount;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????????0??2016-05-28?23:45??訂票系統\Debug\航線信息.txt
?????文件?????150016??2016-06-04?11:54??訂票系統\Debug\訂票系統.exe
?????文件?????996892??2016-06-04?11:54??訂票系統\Debug\訂票系統.ilk
?????文件????1100800??2016-06-04?11:54??訂票系統\Debug\訂票系統.pdb
?????文件???16449536??2016-12-24?09:30??訂票系統\ipch\訂票系統-943c3f9e\訂票系統-f0d06d50.ipch
?????文件???????5858??2016-06-04?11:54??訂票系統\訂票系統\Debug\cl.command.1.tlog
?????文件??????80006??2016-06-04?11:54??訂票系統\訂票系統\Debug\CL.read.1.tlog
?????文件???????8110??2016-06-04?11:54??訂票系統\訂票系統\Debug\CL.write.1.tlog
?????文件?????138027??2016-05-29?22:34??訂票系統\訂票系統\Debug\FlightCourse.obj
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
?????文件??????????2??2016-06-04?11:54??訂票系統\訂票系統\Debug\li
............此處省略45個文件信息
- 上一篇:python3.x Opencv Toturial
- 下一篇:用c++編寫的播放器
評論
共有 條評論