为什么会这样。求解
# include <stdio.h>int main(void)
{
int i;
char ch;
scanf("%d",&i);
printf("i = %d\n",i);
while ((ch = getchar()) != '\n')
continue;
int j;
scanf("%d",&j);
printf("j = %d\n",j);
return 0;
}
错误是:
F:\C语言练习\error\01\1.c(12) : error C2143: syntax error : missing ';' before 'type'
F:\C语言练习\error\01\1.c(13) : error C2065: 'j' : undeclared identifier
执行 cl.exe 时出错.
1.obj - 1 error(s), 0 warning(s)