xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 115KB
    文件類(lèi)型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-05
  • 語(yǔ)言: C/C++
  • 標(biāo)簽:

資源簡(jiǎn)介

C語(yǔ)言編寫(xiě)航空訂票系統(tǒng)-期末課程設(shè)計(jì) 1.航空訂票系統(tǒng) 功能要求: (1)錄入:可以錄入航班情況(數(shù)據(jù)可以存儲(chǔ)在一個(gè)數(shù)據(jù)文件中,數(shù)據(jù)結(jié)構(gòu)、具體數(shù)據(jù)自定) 查詢:可以查詢某個(gè)航線的情況(如,輸入航班號(hào),查詢起降時(shí)間,起飛抵達(dá)城市,航班票價(jià),票價(jià)折扣,確定航班是否滿倉(cāng)); 可以輸入起飛抵達(dá)城市,查詢飛機(jī)航班情況; 訂票:(訂票情況可以存在一個(gè)數(shù)據(jù)文件中,結(jié)構(gòu)自己設(shè)定) 可以訂票,如果該航班已經(jīng)無(wú)票,可以提供相關(guān)可選擇航班; 退票: 可退票,退票后修改相關(guān)數(shù)據(jù)文件; 客戶資料有姓名,證件號(hào),訂票數(shù)量及航班情況,訂單要有編號(hào)。 修改航班信息:當(dāng)航班信息改變可以修改航班數(shù)據(jù)文件 人機(jī)界面自定義,要友好。 漢化人機(jī)界面

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?
#include?

int?Locateair(char?name[]);
/*?*******************結(jié)構(gòu)體定義*******************?*/?
struct?ord_ros
{
char?name[20];/*客戶姓名*/
char?IDnum[20];/*客戶有效證件的編號(hào)*/
char?airnum[7];/*航班號(hào)*/
int?dpl;/*訂票量*/
char?piaohao[20];//票的編號(hào),由航班號(hào)起飛日期此航班訂票前的余票量
struct?ord_ros?*next;
}*Phead?*Pother;

struct?passper
{
char?pername[20];
char?password[16];
struct?passper?*next;
}*Passhead?*Passother;

struct?airline
{
char?qdname[20];/*起點(diǎn)站名*/
char?zdname[20];/*終點(diǎn)站名?*/
char?air_num[7];/*航班號(hào)*/
char?plane_num[10];/*飛機(jī)型號(hào)*/

int?year;
int?month;
int?day;/*飛行日期*/
int?qhour;
int?qminute;/*起飛時(shí)間*/
int?jhour;
int?jminute;/*降落時(shí)間*/

float?zhekou;/*沒(méi)有折扣為十折*/
float?price;/*票價(jià)*/
int?tkt_amt;/*乘員定額*/
int?tkt_sur;/*余票量*/
struct?airline??*next;/*指向下一個(gè)結(jié)點(diǎn)*/
}*Ahead?*Aother;
/*************************************************************/

int?readA()//打開(kāi)文件函數(shù)?
{
int?t;
FILE?*p;
if?((p?=?fopen(“airplane.txt“?“r“))?==?NULL) /*2.打開(kāi)文件*/
{
printf(“File?open?error!\n“);
exit(0);
}
fscanf(p?“%d“?&t);
return?t;
}

int?readP()//打開(kāi)文件函數(shù)?
{
int?t;
FILE?*p;
if?((p?=?fopen(“passenger.txt“?“r“))?==?NULL) /*2.打開(kāi)文件*/
{
printf(“File?open?error!\n“);
exit(0);
}
fscanf(p?“%d“?&t);
return?t;
}

int?readPass()//打開(kāi)文件函數(shù)?
{
int?t;
FILE?*p;
if?((p?=?fopen(“password.txt“?“r“))?==?NULL) /*2.打開(kāi)文件*/
{
printf(“File?open?error!\n“);
exit(0);
}
fscanf(p?“%d“?&t);
return?t;
}

void?start()??//?飛機(jī)載入文件函數(shù)?
{
FILE?*pFile?=?fopen(“start.txt“?“rb+“);
if?(pFile?==?NULL)
{
printf(“File?open?error!\n“);
return;
}
char?ch;
while?((ch?=?fgetc(pFile))?!=?EOF)
{
fputc(ch?stdout);
}
fclose(pFile);
}

void?start_first()??//?動(dòng)態(tài)打印飛機(jī)?
{
system(“color?f2“);
start();
printf(“系統(tǒng)加載中…“);
Sleep(400);
system(“cls“);
system(“color?fb“);
start();
printf(“系統(tǒng)加載中……“);
Sleep(400);
system(“cls“);
system(“color?f9“);
start();
printf(“系統(tǒng)加載中………“);
Sleep(400);
system(“cls“);
system(“color?fc“);
start();
printf(“系統(tǒng)加載完成!!!\n\n“);
system(“pause“);
}

void?shengming()?????????//登陸聲明函數(shù)??
{

system(“color?f9“);
printf(“\n\n“);
printf(“\t\t\t???*******************************????\n“);
printf(“\t\t\t?|????????◆??Welcome?To??◆????????|??\n“);
printf(“\t\t\t???════════════════????\n“);
printf(“\t\t\t?|??????????Summer航空系統(tǒng)??????????|??\n“);
printf(“\t\t\t???════════════════????\n“);
printf(“\t\t\t?|??????????版本號(hào):1.16.5??????????|\n\n“);
printf(“\t\t\t?|???????????2018年1月16日??????????|\n\n“);
printf(“\t\t\t?|??????????????周永強(qiáng)??????????????|\n\n“);
printf(“\t\t\t?|???????????Summer?Lotus???????????|\n\n“);
printf(“\t\t\t?|???????????????組長(zhǎng)???????????????|\n\n“);
printf(“\t\t\t?|????王夏荷?陳藍(lán)艷?林楠?韋淑坤?????|\n\n“);
printf(“\t\t\t?|???????????????組員???????????????|\n\n“);
printf(“\t\t\t??^^^^^^^^^^^^^^^^^^^^^^^^^^^^?\n\n“);
system(“

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-01-16?23:09??Airplane?5.0\
?????文件???????30851??2018-01-16?23:19??Airplane?5.0\1.1.cpp
?????文件??????392779??2018-01-16?23:09??Airplane?5.0\1.1.exe
?????文件?????????567??2018-01-16?23:04??Airplane?5.0\airplane.txt
?????文件?????????479??2018-01-16?21:01??Airplane?5.0\passenger.txt
?????文件?????????104??2018-01-16?13:56??Airplane?5.0\password.txt
?????文件????????1279??2018-01-16?15:29??Airplane?5.0\start.txt

評(píng)論

共有 條評(píng)論