stdin

Why library functions behave diffrently when taking input from stdin. For example, if i use getchar() then it keeps taking input till i press enter!!
Why is that??
stdin by default is line-oriented, which means the data does not become available to the application until the user presses enter. This is operating system behavior, not C++ library behavior.

Topic archived. No new replies allowed.