多个字符串合并 strcat()

#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 @ 2012-05-10 16:44  byfei  阅读(456)  评论(0)    收藏  举报