01-01-1.cpp
来自「more efftive 代码」· C++ 代码 · 共 23 行
CPP
23 行
// VC6[o] BCB4[o] GCC295[o]#include <iostream>#include <vector>#include <algorithm>#include <string>using namespace std;int main() { vector<string> V; string temp; while (temp != "-1")
{
V.push_back(temp);
cin>>temp;
} sort(V.begin(), V.end()); copy(V.begin(), V.end(), ostream_iterator<string>(cout, "\n"));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?