#include <string.h>
#include <iostream>
using namespace std;
int main()
{
int nForbidTime = 99;
char strNotice[100];
sprintf(strNotice,"你被禁言%d秒",nForbidTime);
cout<<strNotice<<endl;
getchar();
return 0;
}
#include <string.h>
#include <iostream>
using namespace std;
int main()
{
char d[256]="hello";
char s[256]=" word";
strcat(d,s);
cout<<d;
getchar();
return 0;
}