{
changdata(i);
if(chkerr(i))
{
rstordata(i);
showdata();
}
else
showdata();
}
else
showdata();
cout< cout<<" 是否繼續銀行家算法演示,按'Y'或'y'鍵繼續,按'N'或'n'鍵退出演示: "; cin>>flag; } } void showdata() { int i,j; cout<<" 系統可用的資源數為:"< cout<<" "; for (j=0;j // { // cout<<"進程"<
// for (j=0;j for (i=0;i
[1] [2] [3] [4] [5] [6]
From:http://tw.wingwit.com/Article/program/czxt/201311/24185.html