数据结构

1.string s;
    getline(cin, s);

2.输入输出流

3.string s;

for (auto i : s)
其中i是s[k],并非是k
原文地址:https://www.cnblogs.com/bear-xin/p/14725901.html