[C] 从控制台执行格式化输入 →→→→→进入此内容的聊天室

来自 , 2019-05-10, 写在 C, 查看 161 次.
URL http://www.code666.cn/view/13111c20
  1. #include <conio.h>
  2.  
  3. int main ( void )
  4. {
  5.         char string[80];
  6.  
  7.         /* clear the screen */
  8.         clrscr();
  9.  
  10.         /* Prompt the user for input */
  11.         cprintf ( "Enter a string with no spaces:" );
  12.  
  13.         /* read the input */
  14.         cscanf ( "%s", string );
  15.  
  16.         /* display what was read */
  17.         cprintf ( "\r\nThe string entered is: %s", string );
  18.         return 0;
  19. }

回复 "从控制台执行格式化输入"

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

captcha