字符串输入流

c语言中将字符串作为输入流,可使用sscanf(char*,const char*,…)。
c++中将字符串作为输入流,可使用stringstream类。可使用<<运算符将string输入到流中,使用>>运算符将流输入到其他对象。

猜你喜欢

转载自blog.csdn.net/qq_40634175/article/details/88079132