VC++調試通過
(C)copyright by Neo
歡迎大家測試 請問題請Email:sony
#include
#include
#include
const int MAXQUEUE=
typedef struct node{
int resource;
int process;
}cell;
cell occupy[MAXQUEUE];
int occupy_quantity;
cell wait[MAXQUEUE];
int wait_quantity;
//初始化函數
void initial()
{
int i;
for(i= occupy[i].process=-1; occupy[i].resource=-1; wait[i].process=-1; wait[i].resource=-1; } [1] [2] [3] [4] [5]
From:http://tw.wingwit.com/Article/program/czxt/201311/24117.html