标签:style blog color os io for ar div
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(int argc, char* argv[]) { string s("中航光电系空方克星股市震荡的安全港湾或引业绩突增"); vector<string> vs; for(unsigned i=0;i<s.length();i+=2) vs.push_back(s.substr(i,2)); sort(vs.begin(),vs.end()); vector<string>::iterator it=vs.begin(); for(;it!=vs.end();it++) cout<<*it; cout<<endl; system("pause"); return 0; }
标签:style blog color os io for ar div
原文地址:http://www.cnblogs.com/sky-view/p/3894595.html