scanf.c
来自「linux unix 入门代码上,是关于初级入门的,经典代码」· C语言 代码 · 共 22 行
C
22 行
#include <stdio.h>intmain(){ int a,b,c; char buf[1024];/* fscanf(stdin,"%d %d %d",&a,&b,&c);*//* fscanf(stdin,"%s",buf); */ fgets(buf,1023,stdin); sscanf(buf,"%d %d %d",&a,&b,&c); fprintf(stdout,"a=%d b=%d c=%d\n",a,b,c); exit (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?