Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include<string.h>
  3. #include<stdio.h>
  4. using namespace std;
  5. char s[100],c[10],aux[150],*p;
  6. int main()
  7. {int n;
  8. cin>>n;
  9. gets(s);
  10. gets(c);
  11. strcpy(aux,s+n);
  12. strcpy(s+n,c);
  13. strcpy(s+n+strlen(c),aux);
  14. cout<<s;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement