多个字符串合并
#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;
}
#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;
}