#include <iostream>
#include <string>
using namespace std;
int main()
{
string a("some string");
for (auto &c : a)
if (!isspace(c))
c = 'X';
cout << a << endl;
system("pause");
return 0;
}
C++ Primer(第五版)练习3.6
最新推荐文章于 2022-09-04 10:37:28 发布