#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
string str;
getline(cin, str);
cout << str << endl;
char ch[25];
cin.getline(ch, 25);
cout << ch << endl;
cout << endl;
system("pause");
return 0;
}
C++字符串输入空格
最新推荐文章于 2023-12-31 16:19:15 发布