要不限制长度,用string
#include "string"
#include "iostream"
using namespace std;
int main(){
string a;
string b;
cin>> a >> b;
cout << a << " " << b<<endl;
}
#include "string"
#include "iostream"
using namespace std;
int main(){
string a;
string b;
cin>> a >> b;
cout << a << " " << b<<endl;
}