改用getline()函数:#include#includeusing namespace std;int main(){ string s1,s2; cout<<态冲慧"Enter s1:"< getline(cin,s1); cout< getchar(); cout<<帆答"Enter s2:"< getline(cin,s2); cout< return 0;}//结果判宏: