get.c

来自「c21Examples.rar」· C语言 代码 · 共 18 行

C
18
字号
/* Demonstrates using the gets() library function. */

#include <stdio.h>

/* Allocate a character array to hold input. */

char input[257];

int main( void )
{
    puts("Enter some text, then press Enter: ");
    gets(input);
    printf("You entered: %s\n", input);

    return 0;
}

⌨️ 快捷键说明

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