cout< } //撤消作業 void finish() { char jobname[20]; int i; job *p,*q; group *r; cout<<"請輸入要撤消的作業名:"; cin>>jobname; q=jhead; p=jhead->next; while((p!=NULL)&&(strcmp(p->name,jobname))){ q=q->next; p=p->next; } if(p==NULL){ cout<<"Sorry,沒有該作業"< } else{ for(i=0;i if(head->quantity head->cell[head->quantity]=p->cell[i]; head->quantity++; } else{ r=initial(); r->next=head; head=r; r->cell[r->quantity]=p->cell[i]; r->quantity++; [1] [2] [3] [4] [5] [6] [7] [8]
From:http://tw.wingwit.com/Article/program/czxt/201311/11253.html