以下是引用crz03128在2007-6-7 23:50:13的发言:
#include<stdio.h>
#include<string.h>
void main()
{
char *str1[50]="maybe you are right";
char *str2[]=" actually you are wrong!";
printf("%s",strcat(*str1,*str2));
}
编了这个,结果出错了
#include<stdio.h>
#include<string.h>
void main()
{
char str1[50]="maybe you are right";
char *str2="actually you are wrong!";
printf("%s\n",strcat(str1,str2));
}
再看一下书吧