91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 40KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-03
  • 語言: C/C++
  • 標簽:

資源簡介

用C語言寫的,航空客運訂票系統,字符界面,適合數據結構的學習者下載學習。

資源截圖

代碼片段和文件信息

#include?“common.h“

void?booktickets(CourseInfo?a[]?int?n)
{
char?name[20];
char?flightNo[20];
char?str1[10];
int?orderAmount;
int?j;
ClientInfo?p?r;
WClientInfo?q;

p?=?(ClientInfo)malloc(sizeof(SClientInfo));
q?=?(WClientInfo)malloc(sizeof(SWClientInfo));

printf(“請輸入相關信息:“);
printf(“航班號:“);
scanf(“%s“?flightNo);
for?(j?=?0;j? if?(!strcmp(a[j].flightNo?flightNo))break;
if?(j?==?n)
{
printf(“對不起,不存在此航線!“);
return?;
}
if?(a[j].engagement?==?0)
{
printf(“對不起,此航線還未開始預定服務!“);
return?;
}
else
{
printf(“客戶姓名:“);
scanf(“%s“?name);
printf(“訂票量:“);
scanf(“%d“?&orderAmount);
if?(a[j].spareAmount?-?orderAmount?>=?0)
{
a[j].spareAmount?=?a[j].spareAmount?-?orderAmount;
strcpy(p->name?name);
p->orderAmount?=?orderAmount;
p->next?=?NULL;
r?=?a[j].client;
while?(r->next)
r?=?r->next;
r->next?=?p;
a[j].clientlength++;
printf(“訂票成功,謝謝使用!“);
}
else
{
printf(“對不起,余票不足,您是否希望被添加到等待客戶信息中。y/n“);
scanf(“%s“?str1);
if?(!strcmp(str1?“y“))
{
strcpy(q->name?name);
q->requireAmount?=?orderAmount;
q->next?=?NULL;
a[j].rear->next?=?q;
a[j].rear?=?q;
a[j].wclientlength++;
printf(“預定票成功,謝謝使用!“);
}

}
}
}


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?-rwxrwxr-x?????14571??2008-11-24?16:35??航空客運訂票系統\cfree\航空訂票\航空訂票.cfp

?-rwxrwxr-x??????4973??2008-09-16?19:20??航空客運訂票系統\cfree\航空訂票\MinGW3\start.o

?-rwxrwxr-x??????6021??2008-09-16?19:20??航空客運訂票系統\cfree\航空訂票\MinGW3\course.o

?-rwxrwxr-x??????6513??2008-09-16?23:41??航空客運訂票系統\cfree\航空訂票\MinGW3\book.o

?-rwxrwxr-x??????6767??2008-09-17?16:48??航空客運訂票系統\cfree\航空訂票\MinGW3\dataIO.o

?-rwxrwxr-x??????6389??2008-09-17?17:06??航空客運訂票系統\cfree\航空訂票\MinGW3\cancel.o

?-rwxrwxr-x???????340??2008-09-17?17:25??航空客運訂票系統\cfree\航空訂票\MinGW3\航線信息.dat

?-rwxrwxr-x??????6329??2008-09-17?17:22??航空客運訂票系統\cfree\航空訂票\MinGW3\main.o

?-rwxrwxr-x??????7386??2008-09-17?17:24??航空客運訂票系統\cfree\航空訂票\MinGW3\query.o

?-rwxrwxr-x?????35307??2008-09-17?17:24??航空客運訂票系統\cfree\航空訂票\MinGW3\航空訂票.exe

?-rwxrwxr-x???????459??2008-10-11?14:20??航空客運訂票系統\Resource\common.h

?-rwxrwxr-x??????1764??2008-10-11?14:21??航空客運訂票系統\Resource\dataIO.c

?-rwxrwxr-x??????1488??2008-10-11?18:29??航空客運訂票系統\Resource\book.c

?-rwxrwxr-x?????13793??2008-10-11?14:25??航空客運訂票系統\Resource\run

?-rwxrwxr-x??????1485??2008-10-11?18:29??航空客運訂票系統\Resource\course.c

?-rwxrwxr-x??????1609??2008-10-11?14:21??航空客運訂票系統\Resource\query.c

?-rwxrwxr-x???????467??2008-10-11?14:21??航空客運訂票系統\Resource\start.c

?-rwxrwxr-x??????1016??2008-10-11?14:24??航空客運訂票系統\Resource\main.c

?-rwxrwxr-x???????655??2008-10-11?18:30??航空客運訂票系統\Resource\struct.h

?-rwxrwxr-x??????1506??2008-09-17?20:05??航空客運訂票系統\Resource\cancel.c

?drwxrwxr-x?????????0??2008-09-15?11:05??航空客運訂票系統\cfree\航空訂票\MinGW3

?drwxrwxr-x?????????0??2008-09-17?20:09??航空客運訂票系統\cfree\航空訂票

?drwxrwxr-x?????????0??2008-09-17?20:09??航空客運訂票系統\cfree

?drwxrwxr-x?????????0??2008-10-11?18:30??航空客運訂票系統\Resource

?drwxrwxr-x?????????0??2008-09-17?20:09??航空客運訂票系統

-----------?---------??----------?-----??----

???????????????118838????????????????????25


評論

共有 條評論