Queue[n].last=Rem;蚄TimeQueue[n].CNum++;膃printf("eedtobook!\n");蒁}肈else{莅Rem=(structnode*)malloc(sizeof(structnode));膄strcpy(Rem->data,Infor);蕿Rem->next=NULL;蒇p=TimeQueue[n].last;膅Rem->locat=TimeQueue[n].CNum+1;羁printf("%d",Rem->locat);羂TimeQueue[n].last=Rem;莁p->next=Rem;莀TimeQueue[n].CNum++;薇printf("eedtobook!\n");薅}肄}肀elseprintf("puter!");蕿}蚃elseprintf("Error!Pleaseinputagain.\n");蒄}袁莆voidwaiting()肅{袃intn;薁charInfor[10];蒇structnode*Rem;膄structnode*p;芃(再次输入查询时间)节printf("Pleaseinputthetimeyouwanttoqueue!\n");文档收集自网络,仅用于个人学习葿scanf("%d",&n);薆if(n>=8&&n<20){螂n=S(n);肂if(TimeQueue[n].CNum>=MAX){芆printf("PleaseinputyourNo.!\n");蚅scanf("%s",Infor);膁薈if((TimeQueue[n].CNum)==MAX){莇Rem=(structnode*)malloc(sizeof(structnode));螃strcpy(Rem->data,Infor);薁Rem->next=NULL;艿Rem->locat=0;葿p=TimeQueue[n].last;