我想阅读用户使用C程序输入的名称.
为此,我写道:
char name[20]; printf("Enter name: "); gets(name);
但是使用gets不好,那么更好的方法是什么?
gets
c stdin
c ×1
stdin ×1