processes[p]a+=a;
processes[p]b+=b;
processes[p]c+=c;
cout<<为作业申请资源成功< }
else{
cout<<"为作业申请资源失败"< }
}
else{
cout<<"该作业不存在"< }
}
//撤消作业
void finished()
{
char name[20];
int i,p;
cout< cout<<"━━━━━━━━━━━━━━━━━━━━━━━━━━━━"< cout<<"要撤消作业名:";
cin>>name;
p=-1;
for(i=0;i if(!strcmp(processes[i].name,name)){
p=i;
break;
}
}
if(p!=-1){
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]