主题:DEV 4.9.9.2编译器问题
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int a,b;
char ch;
printf ("qing shu ru yi ge zifu er ge shuzi.\n");
while ((ch = getchar ()) != '\n')
{
if (scanf ("%d %d",&a,&b) != 2)
break;
while (getchar () != '\n')
continue;
printf ("shu ru xia yi ge zimu he shuzi .");
}
system("PAUSE");
return 0;
}
[em18][color=800000]这段代码用DEV 4.9.9.2 能通过编译,为什么编译运行没反应呢?[/color]
#include <stdlib.h>
int main(int argc, char *argv[])
{
int a,b;
char ch;
printf ("qing shu ru yi ge zifu er ge shuzi.\n");
while ((ch = getchar ()) != '\n')
{
if (scanf ("%d %d",&a,&b) != 2)
break;
while (getchar () != '\n')
continue;
printf ("shu ru xia yi ge zimu he shuzi .");
}
system("PAUSE");
return 0;
}
[em18][color=800000]这段代码用DEV 4.9.9.2 能通过编译,为什么编译运行没反应呢?[/color]