<span style="font-size:18px;">#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
vector<string> V;
string tmp;
for (int i = 0; i < 5;i++)
{
getline(cin, tmp);
V.push_back(tmp);
}
sort(V.begin(), V.end());
copy(V.begin(), V.end(), ostream_iterator<string>(cout, "\n"));
cout << "ohhahaha\n";
system("pause");
return 0;</span>
}
STL之Vector
最新推荐文章于 2023-04-27 22:20:33 发布