#include <stdio.h>
void StrCat(char target[],const char source[]);
int main()
{
char cTarget[80]="hello";
char cSource[40]="world";
StrCat(cTarget,cSource);
printf("%s\n",cTarget);
}
void StrCat(char target[],const char source[])
{
int i,j=0;
for (i=0;target[i]!='\0';i++)
{
;
}
while ((target[i++]=source[j++])!='\0')//赋值成功后 的值是多少 比较的时候值就是多少 。
{
;
}
}