You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
344 B
22 lines
344 B
6 years ago
|
#include"main.h"
|
||
|
|
||
|
load(int v){
|
||
|
|
||
|
dif=0;
|
||
|
|
||
|
FILE *precord=fopen("record.txt","r");
|
||
|
|
||
|
fscanf(precord,"%d%d%d",&range,&kind,&voice);
|
||
|
|
||
|
if(range==1) dif+=2;
|
||
|
if(kind==1) dif++;
|
||
|
|
||
|
for(int i=0;i<4;i++){
|
||
|
for(int j=0;j<10;j++){
|
||
|
fscanf(precord,"%s%d%f",&dates[i][j].name,&dates[i][j].scores,&dates[i][j].time);
|
||
|
}
|
||
|
}
|
||
|
fclose(precord);
|
||
|
|
||
|
}
|