⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 input.c

📁 里面包含很多c语言的源码
💻 C
字号:
/* Demonstrates using scanf() to input numeric and text data. */

#include <stdio.h>

char lname[257], fname[257];
int count, id_num;

int main( void )
{
    /* Prompt the user. */

    puts("Enter last name, first name, ID number separated");
    puts("by spaces, then press Enter.");

    /* Input the three data items. */

    count = scanf("%s%s%d", lname, fname, &id_num);

    /* Display the data. */

    printf("%d items entered: %s %s %d \n", count, fname, lname, id_num);

    return 0;
}

⌨️ 快捷键说明

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