无法像直接输入整数那样方便的使用 scanf()函数输入 string变量。原因是,string并非是C的原生类型。但是是可以做到让scanf输入string类型的数据。 不建议使用 scanf 输入string类型字符串。 1.scanf 如果想直接使用scanf输入...
Get to the key point firstly, the article comes from LawsonAbs! 无法像直接输入整数那样方便的使用 scanf()函数输入 string变量。原因是,string并非是C的原生类型。但是是可以做到让scanf输入string类型的数据。 不建议使用 scanf 输入string类型字符串。 1.scanf 如果想直接使用scanf输入string类型,会报错。应该使...