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;iquantity;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]