一、选择题
C,BC,C,DAADCDBAC
二、填空题
abcbcc
string s:I like it.
string t:I like it.you? How are you
30 10 30 n learning
三、编程题
1、
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
string a,b;//定义俩字符串
cout << "string 1: " ;
cin >> a;//输入字符串a
cout << "string 2: " ;
cin >> b;//输入字符串b
string c =a+b;//将字符串a、b拼接到一起
cout << "拼接后的字符串为:" << c << endl;
sort(c.begin(),c.end());//排序
cout << "排序后的字符串为:" << c;
return 0;
}