Advertisement
Sightburner

end is near!

May 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6.     std::string a = "end";
  7.     std::string b = "is near";
  8.     std::string c = "dude";
  9.  
  10.     std::string output = b.substr(1,1) + a + " " + a.substr(1,1) + c.substr(1, c.length()) + b.substr(1,1) + "!";
  11.     std::cout << output << "\n";
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement