#include <iostream>
using std::string;
using std::cout;
using std::cin;
using std::endl;
int main() {
string test("hello world!");
for (auto &c:test) {
c = 'X';
}
cout << test << endl;
}
#include <iostream>
using std::string;
using std::cout;
using std::cin;
using std::endl;
int main() {
string test("hello world!");
for (auto &c:test) {
c = 'X';
}
cout << test << endl;
}
本文标题:[C++ Primer] 练习3.6
本文链接:https://www.haomeiwen.com/subject/iwuxgttx.html
网友评论