Guest User

Untitled

a guest
Apr 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main(){
  5. std::string name;
  6. char ch[10];
  7. std::cout<<"Please enter name..."<<std::endl;
  8. std::cin>>name;
  9. std::cout<<"Enter Character to appended..."<<std::endl;
  10. std::cin>>ch;
  11. name.append(ch);
  12. std::cout<<"New name..."<<name<<std::endl;
  13. return 0;
  14. }
Add Comment
Please, Sign In to add comment