65,211
社区成员
发帖
与我相关
我的任务
分享int getchar ( void );
<cstdio>
Get character from stdin
Returns the next character from the standard input (stdin).
It is equivalent to getc with stdin as its argument.
Parameters
(none)
Return Value
The character read is returned as an int value.
If the End Of File is reached or a reading error happens, the function returns EOF
and the corresponding error or eof indicator is set. You can use either ferror or
feof to determine whether an error happened or the End-Of-File was reached.