C语言编程火车订票系统源代码.pptxVIP

  • 55
  • 0
  • 约小于1千字
  • 约 12页
  • 2020-10-10 发布于广东
  • 举报
火车订票系统源码 #include conio.h #include stdio.h #include stdlib.h #include string.h int shoudsave=0 ; int count1=0,count2=0,mark=0,mark1=0 ; /*定义存储火车信息的结构体*/ struct train { char num[10];/*列车号*/ char city[10];/*目的城市*/ char takeoffTime[10];/*发车时间*/ char receiveTime[10];/*到达时间*/ int price;/*票价*/ int bookNum ;/*票数*/ }; /*订票人的信息*/ struct man { char num[10];/*ID*/ char name[10];/*姓名*/ int bookNum ;/*需求的票数*/ }; /*定义火车信息链表的结点结构*/ typedef struct node { struct train data ; struct node * next ; }Node,*Link ; /*定义订票人链表的结点结构*/ typedef struct people { struct man data ; struct people*next ; }bookMan,

文档评论(0)

1亿VIP精品文档

相关文档