多个字符串合并

#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;
}
posted @ 2011-09-21 11:48  byfei  阅读(253)  评论(0编辑  收藏  举报