}
else{
while(!feof(fp)){
fscanf(fp%d %d&wait[wait_quantity]process&wait[wait_quantity]resource);
wait_quantity++;
}
}
//输出所读入的数据
cout< cout<<"━━━━━━━━━━━━━━━━━━━━━━━"< cout<<"资源分配表"< cout<<"资源编号 进程编号"< for(i=0;i cout<<" "< cout<<"进程等待表"< cout<<"进程编号 资源编号"< for(i=0;i cout<<" "< for(i=0;i for(j=0;j cout<
for(i=0;i for(j=0;j cout<
cout<<"───────────────────"< if(flag!=-1){
[1] [2] [3] [4] [5]