Initial commit

Already wrote the code but now checking in using source control
This commit is contained in:
kdeng00
2023-01-22 20:07:02 -05:00
commit 1333d543c7
5 changed files with 446 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <cctype>
#include "number_parser.hpp"
using std::cout;
using std::string;
using std::vector;
using std::fstream;
using std::stringstream;
int main(int argc, char **argv)
{
cout << "clean_files\n";
if (argc < 2)
{
cout << "Provide path to file\n";
return -1;
}
const string filepath(argv[1]);
parser::number_parser<parser::some_object> file_parser(filepath);
auto raw_values = file_parser.file_dump();
auto parsed_values = file_parser.update_values(raw_values);
file_parser.remove_duplicates(parsed_values);
file_parser.print_values(parsed_values);
file_parser.save_file(parsed_values);
return 0;
}