{
cout<< cin>>i; if(i<0||i>=M)cout<<" 輸入的進程號不存在,重新輸入!"< } cout<<" 請輸入進程"<
for (j=0;j { cout<<" 資源"< cout<<"申請不合理,出錯!請重新選擇!"< flag='N'; break; } else { if(Request[j]>AVAILABLE[j]) { cout<<" 進程"<
cout<<"申請不合理,出錯!請重新選擇!"< flag='N'; break; } } } if(flag=='Y'||flag=='y')
[1] [2] [3] [4] [5] [6]
From:http://tw.wingwit.com/Article/program/czxt/201311/24184.html