jobs[i]wait_time=;
jobs[i]visited=;
}
}
//读入作业数据函数
void readData()
{
FILE *fp;
char fname[];
int i;
cout<<请输入作业数据文件名:;
strcpy(fnamejobtxt);
cin>>fname;
if((fp=fopen(fnamer))==NULL){
cout<<错误文件打不开请检查文件名:)< }
else{
while(!feof(fp)){
fscanf(fp,"%d %d %d %d",&jobs[quantity].number,&jobs[quantity].reach_time,&jobs[quantity].need_time,&jo
bs[quantity].privilege);
jobs[quantity].reach_hour=jobs[quantity].reach_time/100;
jobs[quantity].reach_minite=jobs[quantity].reach_time%100;
quantity++;
}
//输出初始作业数据
cout<<"输出初始作业数据"< cout<<"---------------------------------------------------------------"< cout.setf(2);
[1] [2] [3] [4] [5] [6] [7] [8] [9]