getc

  函数名: getc
  功 能: 从流中取字符
  用 法: int getc(FILE *stream);//red the next character from stream and return it as an unsigned char cast to a int ,or EOF on end of file or error.
  程序例:
  #include <stdio.h>
  int main(void)
  {
  char ch;
  printf("Input a character:");
  /* read a character from the
  standard input stream */
  ch = getc(stdin);
  printf("The character input was: '%c'\n",
  ch);
  return 0;
  }




putc

  功 能: 输出一字符到指定流中
  用 法: int putc(int ch, FILE *stream);
  程序例:
  #include <stdio.h>
  int main(void)
  {
  char msg[] = "Hello world\n";
  int i = 0;
  while (msg )
  putc(msg[i++], stdout);
  return 0;
  }




getc():
调用方式:int getc(FILE *stream)
它返回指定输入流stream的当前位置的下一个字符,并增加文件的位置指示器.
getch():
调用方式:int getch(void)
getch()从控制台读取一个字符,但不把该字符显示在屏幕上,也就是不回显.
getche():
调用方式:int getche(void)
getchar()从控制台读取一个字符,把该字符显示在屏幕上,也就是回显.
getchar():
调有方式:int getchar(void)
getchar()从控制台读取一个字符,并回显,它和getch(),getche()的不同在于,它等到输入一个回车才结束,就算你输入了一个字符串,它也只取其中的第一个字符.