c++程序—输入

#include<iostream>
using namespace std;
#include<string>

int main()
{
    string str = "hello world!";
    cout << str << endl;
    cin >> str;
    cout << str << endl;
    

    system("pause");
    return 0;

}

 

posted @ 2020-02-25 09:14  Jackie_Wang  阅读(160)  评论(0编辑  收藏  举报