#include <iostream>
#include <fstream>
#include <string>
#include <set>
Go to the source code of this file.
|
typedef std::set< std::string > | StrSet |
|
◆ StrSet
typedef std::set<std::string> StrSet |
◆ main()
Definition at line 8 of file sortline.cpp.
9{
11 std::string line;
12 while (std::getline(std::cin, line)) {
13 if (!line.empty() && line[line.size() - 1] == '\n') {
14 line.resize(line.size() - 1);
15 }
16 if (!line.empty()) {
18 }
19 }
20 for (StrSet::const_iterator i =
ss.begin(), ie =
ss.end(); i != ie; ++i) {
21 std::cout << *i << std::endl;
22 }
23}
static const Segment ss(Segment::ss)
std::set< std::string > StrSet