#include <stdio.h>
#define bool int
#define true 1
#define false 0
#define Max 80
Part *creatPart();
void sale(int count);
//定义隔间信息结构体链表
typedef struct tagPart
{
int PartNum;
Seat seat[N];
struct tagPart *next;
}Part;
//定义座位信息结构体
typedef struct tagSeat
{
int SeatNum;
bool status;
}Seat;
Part *creatPart()
{
Part *pHead,*p,*s;
pHead=(Part*)malloc(sizeof(Part));
pHead->PartNum = NULL;
pHead->next = NULL;
pHead->seat = seat[];
}
void sale(int count)
{
int SeatNum[count];
switch (count)
case 1:
for (SeatInfo.SeatNum=1;SeatInfo.SeatNum<M*N;SeatInfo.SeatNum++)
{
if (SeatInfo.status)
SeatNum[0]=SeatInfo.SeatNum++;
else
SeatNum[0]=SeatInfo.SeatNum
}
case 2:
case 3:
case 4:
default:
break;
}
void main()
{
printf("hello world ");
}
C语言使用链表实现火车票售票系统未完成
最新推荐文章于 2024-08-03 21:15:16 发布