Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string myString = 'Hello';
- string shifted = myString + 2;
- cout << shifted << endl;
- std::string myString = 'Hello';
- std::string shifted;
- for (auto const &ch : myString)
- shifted += ch + 2;
- std::cout << shifted << '