用什么办法才能统计A1到D3剩下还有多少
void InitSeatTable()
{
char* seatNum[] =
{
"A1","A2","A3","B1","B2","B3",
"C1","C2","C3","D1","D2","D3"
};
for (int i = 0; i < SeatCount; i++)
{
strcpy(seats[i].seatID, seatNum[i]);
seats[i].IsAssigned = 0;
strcpy(seats[i].FirsName, "0");
strcpy(seats[i].LastName, "0");
}
}
//count empty seat
int EmptySeat()
{
char option = getchar();
if (option == 1)
{
printf("the number of empty seats is %d", SeatCount - 1);//这样好像不行
}
}