Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- int main(int argc, char *argv[])
- {
- std::string str;
- str = "hello World";
- str += " and hello again";
- std::cout<<str<<"\n";
- str.replace(str.begin(),str.end(),"hello","HELLO");
- std::cout<<str<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement