Advertisement
193030

String concatenation

Feb 21st, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. string ns;
  5.  
  6. using namespace std;
  7. int main()
  8. {
  9.  
  10.    string s1 = "Hi ";
  11.    string s2 = "W";
  12.    string s3 = s1+"   "+s2;
  13.  
  14.    cout << s3;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement