#include<iostream>
#include<cstring>
#include <iomanip>
using namespace std;
int main()
{
char str1[10]="Cyclone";
char str2[10]="Joker";
char str3[15]="Kaman Knight";
int len;
cout<<str1<<"!"<<endl;
cout<<str2<<"!"<<endl;
strcat(str1,str2);
cout<<str3<<setw(13)<<str1<<endl;
len=strlen(str3);
cout<<len<<endl;
return 0;
}
结果:Cyclone!
Joker!
Kaman Knight CycloneJoker
12