编译出现找不到的错误
void save(Pointer head) /* 13 q7 保存 */{
Pointer p7;
FILE *fp;
int flag=1;
p7=head;
fp=fopen("d:\\code\\list","w");
if(fp==NULL)
{
printf("open file error,press any key to return\n");getchar();
}
else
{
while(p7)
{
if(fwrite(p7,sizeof(BOOK),1,fp)==1)
{p7=p7->next;continue;}
else
{flag=0;break;}
}
if(flag)
{printf("\nsave success,press any key to continue\n");getchar();}
else
{printf("\nsave error,press any key to continue\n");getchar();}
}
} /* 13 q7 END */
错误提示:
declaration missing ;
missing };
void wrong() /* 2 错误函数 */
{
printf("\n\n enter wrong,press any key to continue \n");
getchar();
} /* 2 END */
这个说申请语法错误
怎么我看不出