Posted on 1999-12-14
I have created this program and have compiled it. There seems to be a problem with the identifier I have used, fscanf. What did I do wrong?
long int salary;
FILE * infile;
infile = fopen("a:\\sports.dat","r");
while fscanf(infile, "%s%d%d",player,&jersey,&salary)!=EOF)
printf("%s %d %d\n",player,jersey,salary);
A:\sports.c(10) : error C2061: syntax error : identifier 'fscanf'