标签:names vector bsp string using return include turn back
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
vector <string> names;
names.push_back("WXH");
names.push_back("WX");
names.push_back("W");
names.push_back("ZXY");
names.push_back("ZX");
names.push_back("Z");
sort(names.begin(),names.end());
vector<string>::iterator iter =names.begin();
while( iter != names.end())
{
cout << *iter <<endl;
iter++;
}
return 0;
}
标签:names vector bsp string using return include turn back
原文地址:http://www.cnblogs.com/TogetherLaugh/p/6641158.html