}
if(flag){
cout<<错误作业已存在< }
else{
cout<<"本作业所需A类资源:";
cin>>need_a;
cout<<"本作业所需B类资源:";
cin>>need_b;
cout<<"本作业所需C类资源:";
cin>>need_c;
t=1;
cout< if(need_a>banker.remain_a){
cout<<"错误,所需A类资源大于银行家所剩A类资源"< t=0;
}
if(need_b>banker.remain_b){
cout<<"错误,所需B类资源大于银行家所剩B类资源"< t=0;
}
if(need_c>banker.remain_c){
cout<<"错误,所需C类资源大于银行家所剩C类资源"< t=0;
}
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]