且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

读取输入的多行与scanf函数

更新时间:2023-11-13 23:11:58

试试这个code和使用Tab键作为分隔符

try this code and use tab key as delimeter

#include <stdio.h>
int main(){
    char s[100];
    scanf("%[^\t]",s);
    printf("%s",s);

    return 0;
}