void main() { string str = "abc"; cout << "Origin" << str << endl; for (int i = 0; i < str.size(); i++) { str[i] -= 32; } cout << "Change" << str << endl; }
void main() { string str = "abc"; cout << "Origin" << str << endl; for (int i = 0; i < str.size(); i++) { str[i] += 32; } cout << "Change" << str << endl; }