c++ 字符串、向量和数组 2018.3.30

1、标准库类型string表示可边长的字符序列,定义在命名空间std中,要使用的话:         #include <string>         using std::string;         string s1; 2、读取未知数量的string对象:         while (cin >> word)... 3、使用getline读取一整行     getline从输入流中读取
相关文章
相关标签/搜索