这就是我所拥有的:
Error when evaluating expression "wrestler.team".
它会发出警告#include <stdio.h>
#include<stdlib.h>
int main(int argc, char *argv[]){
int x = 19530;
int y;
FILE *buff;
buff = fopen("BUFF.txt","w+");
for(int i = 1; i <= 5; i++){
fprintf(buff, "%d", x);
rewind(buff);
fscanf(buff, "%d", &y);
printf("y = %d\n", y);
y = y/5;
fclose(fopen("BUFF.txt", "w+"));
fprintf(buff, "%d", y);
}
return 0;
}
显示最初的wrestler.team,并且#34; okay&#34;也是如此,但第二个wrestler.team会发出警告。这是预期的行为吗?