#include
int main()
{
char a[10],b[10],c[20];
int i,j;
gets(a);
gets(b);
i=j=0;
while (a[i]!='\0')
{
c[i]=a[i];
i++;
}
while (b[j]!='\0')
{
c[i]=b[j];
i++;
j++;
}
c[i]='\0';
printf("a: %s,b: %s cat--%s\n",a,b,c);
return 0;
}
string a="hello",b="world";
a=a+b;
delete b;