版主下面是我改了你的程序!!你试下行不行??
void MyStrcat(char str1[],char str2[])
{
int i,j;
for (i = 0; str1[i] != '\0' ;
++i) //这里++i应该改成i++,否则有乱码
{
}
for (j = 0; str2[j] != '\0';
++j,++i) //同上
{
str1[i] = str2[j];
}
---------------------------------------------------------
[glow=255,green,2]______[/glow]
[glow=255,blue,2]—————[/glow]