当调用scanf()时,我输入Ctrl-D(EOF),然后忽略下一个scanf。 #include <stdio.h>
int main()
{
int input;
scanf("%d", &input);//I press Ctrl-D when this line
scanf("%d", &input);//this line just passed. n
我使用repl.it来编写C语句,但是当我运行它时,系统会跳过if语句中的第二个scanf。 #include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main (void)
{
char services[40];
loop: printf ("I can help you to do something