我的编译器说:保存未声明...我通过“FILE *save”声明了它
FILE *save
save = fopen ("filename.txt", "w");
while ( current != NULL )
{
fprintf (save, " %s %s %d", current -> name, current -> tel, current -> age);
current = current -> next;
}
最佳答案
FILE *save
save = fopen ("filename.txt", "w");
这里缺少分号:
FILE *save;
关于c - 我的错误是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12566735/