#include
Int main () {
Char a [80], [20] b;
Gets (a);
Gets (b);
Int I=0, j=0, alen.
for(; A [I]!='\ 0'; I++);
Alen=I;
For (I=alen;; I++) {
[j] a [I]=b;
j++;
If (b [j]='\ 0') break;
}
A [alen + j]='\ 0';
Puts (a);
}
Bosses, please help to see where I went wrong, type a, enter, type b again, enter, and, and then press enter on fixed
CodePudding user response:
Part of concatenated code try:While ((a=b [i++] [j++])!=0);
Will be put at the end of the '\ 0' also copy together,
CodePudding user response:
While the back; To say that the loop body is empty statement,CodePudding user response:
You are no problem, logical symbol is wrong, should be the bj==0