admin 管理员组

文章数量: 1184232


2024年4月30日发(作者:llvm gcc)

火车订票系统源码

include <>

include <>

include <>

include <>

int shoudsave=0 ;

int count1=0,count2=0,mark=0,mark1=0 ;

/定义存储火车信息(de)结构体/

struct train

{

char num[10];/列车号/

char city[10];/目(de)城市/

char takeoffTime[10];/发车时间/

char receiveTime[10];/到达时间/

int price;/票价/

int bookNum ;/票数/

};

/订票人(de)信息/

struct man

{

char num[10];/ID/

char name[10];/姓名/

int bookNum ;/需求(de)票数/

};

/定义火车信息链表(de)结点结构/

typedef struct node

{

struct train data ;

struct node net ;

}Node,Link ;

/定义订票人链表(de)结点结构/

typedef struct people

{

struct man data ;

struct peoplenet ;

}bookMan,bookManLink ;

/ 初始界面/

void printInterface()

{

puts("");

puts(" Welcome to use the system of booking tickets ");

puts("");

puts(" You can choose the operation:

");


本文标签: 火车 时间 链表