非常急~~~请教高手帮忙解决一道C语言题目

来源:百度知道 编辑:UC知道 时间:2024/06/23 08:41:34
机房机位预约模拟
20台机器,从早8点到晚8点,每两小时一个时间段.
需要实现的功能:
(1) 查询,根据输入时间,输出机位信息
(2)机位预定,根据输入的日期和时间段查询是否有空机位,若有则预约,若无则提供最近空机时间段.另:若用户要求在非空时间上机,则将用户信息插入该时间段的等待列表.
(3)退出预定,根据输入的时间,撤销该时间的预定.
(4)查询是否有等待信息,若有则按顺序现实联系方式,若无则显示提示信息
在线等,非常急~~~~~~~~~~

开发工具:vc6.0
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>

void Display();
void Search();
void Book();
void Quit();
void Wait(int time);
void SearchWait();
void Exit();

int computernum[6]={20,20,20,20,20,20};

struct waitlist{
char phonenumber[12];
waitlist *next;
};

waitlist wait[6]={{"0",NULL},{"0",NULL},{"0",NULL},{"0",NULL},{"0",NULL},{"0",NULL}};

int main()
{
Display();
return 0;
}

void Display()
{
system("cls");
printf("\n\n\n\n\n");
printf("\t===============================================================\n");
printf("\t| COMPUTER BOOK SYSTEM |\n");
printf(&qu