美文网首页
[C++ Primer] 练习3.2

[C++ Primer] 练习3.2

作者: 和平北路 | 来源:发表于2017-02-28 11:30 被阅读0次
#include <iostream>
#include <string>

using std::string;
using std::cout;
using std::cin;
using std::endl;

int main() {
    string line;
    getline(cin, line);
    cout << line << endl;
    cin >> line;
    cout << line << endl;
}

相关文章

网友评论

      本文标题:[C++ Primer] 练习3.2

      本文链接:https://www.haomeiwen.com/subject/htrxgttx.html