سلام
شاید خیلی دیر شده باشه ولی خوب:
#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<string.h>
void stract(char s1[],char s2[]){
int i,j=0,n=0,m=0;
n=strlen(s1);
m=strlen(s2);
int f=m+n;
while(j<m)
for(i=n;i<f;i++)
s1[i]=s2[j++];
cout<<"\n THE RESULT IS:";
for(int k=0;k<f;k++)
cout<<s1[k];
}
int main()
{
char s1[80],s2[80];
clrscr();
cout<<"\nplease enter s1:";
cin.get(s1,80);
cin.get();
cout<<"\nplease enter s2:";
cin.get(s2,80);
stract(s1,s2);
getch();
return 0;
}
*_ کد متمایز شد.