Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- int main()
- {
- std::string a = "end";
- std::string b = "is near";
- std::string c = "dude";
- std::string output = b.substr(1,1) + a + " " + a.substr(1,1) + c.substr(1, c.length()) + b.substr(1,1) + "!";
- std::cout << output << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement