I input Ctrl - D (EOF) when called
scanf(), then next scanf
ignored.
#include
int main()
{
int
input;
scanf("%d", &input);//I press Ctrl-D when this line
scanf("%d", &input);//this line just passed. not read my input. why?
return
0;
}
I
want get input with scanf() second called.
What's is a
problem?
No comments:
Post a Comment