#include<bits/stdc++.h>
using namespace std;
string str ;
string STR ;
int main(){
for(int I=0;I<6;I++) /// 012345
str[I] = I + '0' ;
for(int J=0;J<6;J++) /// abcdef
STR[J] = J + 'a' ;
cout << str << " " << STR << endl ; /// blank line !!!
printf("%s\n",str.c_str()); /// abcdef
printf("%s\n",STR.c_str()); /// abcdef
return 0;
}
输出::
abcdef abcdef
我期待::
012345 abcdef 012345 abcdef