自己想
好啦給你答案
#include <iostream>#include <string>using namespace std;main(){ string s; while(getline(cin,s)) { cout<<"Hey "<< s << endl; }}