#1673. C++-内置函数-getchar()读取下一个字符

C++-内置函数-getchar()读取下一个字符

No testdata at current.

Background

Description

C++ 中的getchar() 函数从标准输入读取下一个字符。

getchar()原型 int getchar(); getchar() 函数等效于对 getc(stdin) 的调用。它从通常是键盘的标准输入中读取下一个字符。

它在<cstdio> 头文件中定义。

参数: 没有。

返回: 成功时,getchar() 函数将返回输入的字符。 失败时返回EOF(End Of File 的缩写,表示“文件结束”). 如果失败是由于文件结束条件引起的,它会在 stdin 上设置 EOF 指示符。 如果失败是由其他错误引起的,它会在 stdin 上设置错误指示器。

Format

Input

Output

Samples



Limitation

1s, 1024KiB for each test case.