Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // string::back
- #include <iostream>
- #include <string>
- int main ()
- {
- std::string str ("hello world.");
- str.back() = '!';
- std::cout << str << '\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement