Advertisement
nastiia_firefly

Untitled

Dec 2nd, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1.  for( i = 1,j=0; i <poz,j<strlen(s1.str); i++,j++)
  2.         {buff.str[i] = s1.str[i];buff.output();}
  3.  
  4.      for(i=poz,j=1;i<=strlen(s2.str),j<=strlen(s2.str);i++,j++)
  5.         {buff.str[i] = s2.str[j];buff.output();}
  6.  
  7.      for(i=strlen(s2.str)+poz,j=poz+1;i<strlen(s1.str),j<strlen(s1.str)+poz;i++,j++)
  8.         {buff.str[i]=s1.str[j];buff.output();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement