#include <string.h>
#include <iostream>
using namespace std;
int main()
{
char d[256]="hello";
//char *s=" word";
char s[256]=" word";
strcat(d,s);
cout<<d;
getchar();
return 0;
}
转载于:https://www.cnblogs.com/byfei/archive/2011/09/21/3112329.html