文法:
#include <cstdio> int getchar( void );
getchar()関数は標準入力の次の文字を返します。もしもファイルの終端に達していたらEOFを返します。
関連トピック: fgetc, fopen, fputc, putc