group *initial()
{
int i;
group *p;
p=new group;
p
p
for(i= p->cell[i]=-1; } return p; } //初始化作業函數 job *initial_job() { int i; job *p; p=new job; strcpy(p->name,""); p->quantity=0; p->next=NULL; for(i=0;i p->cell[i]=-1; } return p; } //讀入空閒塊流文件 void readData() { FILE *fp; char fname[20]; int temp; group *p; cout<<"請輸入初始空閒塊數據文件名:"; cin>>fname; if((fp=fopen("5unix.txt","r"))==NULL){ cout<<"錯誤,文件打不開,請檢查文件名:)"< } [1] [2] [3] [4] [5] [6] [7] [8]
From:http://tw.wingwit.com/Article/program/czxt/201311/11258.html