group *initial()
{
int i;
group *p;
p=new group;
p>quantity=;
p>next=NULL;
for(i=;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]