C语言从stdin读取一行字符串的几种方法

如题所述

char s[100];
scanf("%s",s);
gets(s);
fgets(s,100,stdin);

温馨提示:答案为网友推荐,仅供参考
相似回答