-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (28 loc) · 866 Bytes
/
Copy pathmain.cpp
File metadata and controls
33 lines (28 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <typeinfo>
#include <memory>
#include <list>
#include <functional>
#include <algorithm>
#include "PolymorphicSorterLibrary/polymorphic_sorter.hpp"
/* DESCRIPTION
usage: polysort [-i in] [-o out] [-s separator] { type colnum }
-i: input file (default: stdin)
-o: output file (default: stdout)
-s: separator (default: ' ')
type: S - string, N - numeric, ...
column: the number of logical column (starting from 1)
type: S - string, N - numeric, R - reversed string sort, I - ignore case string
A - natural sort, F - floats, C - complex numbers
column: the number of logical column (starting from 1)
*/
int main(int argc, char **argv)
{
Polymorphic_Sorter sorter = Polymorphic_Sorter();
sorter.sort(argc, argv);
return 0;
}