函数名: getchar
功  能: 从stdin流中读字符
用  法: int getchar(void);
程序例:
#include <stdio.h>
int main(void)
{
   int c;
   /* Note that getchar reads from stdin and
      is line buffered; this means it will
      not return until you press ENTER. */
   while ((c = getchar()) != '\n')
      printf("%c", c);
   return 0;
}