#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; }
c++程序—输入
原文:https://www.cnblogs.com/hackerteen/p/12360034.html