[C] 从流中读取字符 →→→→→进入此内容的聊天室

来自 , 2019-07-23, 写在 C, 查看 111 次.
URL http://www.code666.cn/view/653ac11c
  1. #include <stdio.h>
  2.  
  3. int main ( void )
  4. {
  5.         char ch;
  6.  
  7.         /* prompt the user for input */
  8.         printf ( "Enter a character followed by \
  9.   <Enter>: " );
  10.  
  11.         /* read the character from stdin */
  12.         ch = fgetchar();
  13.  
  14.         /* display what was read */
  15.         printf ( "The character read is: '%c'\n",
  16.                  ch );
  17.         return 0;
  18. }
  19.  

回复 " 从流中读取字符"

这儿你可以回复上面这条便签

captcha