fig22_20.c

来自「经典vc教程的例子程序」· C语言 代码 · 共 17 行

C
17
字号
/* Reading characters and strings */
#include <stdio.h>

main()
{
   char x, y[9];
   
   printf("Enter a string: ");
   scanf("%c%s", &x, y);

   printf("The input was:\n");
   printf("the character \"%c\" ", x);
   printf("and the string \"%s\"\n", y);
   return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?