commit e24c996affd0bf5ff34b66399a99de6a1b98b00a Author: Ludovic 'Archivist' Lagouardette Date: Fri Aug 24 19:23:25 2018 +0200 Initial commit diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..43e9032 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,27 @@ +{ + "files.associations": { + "*.tcc": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "exception": "cpp", + "initializer_list": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "new": "cpp", + "ostream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "type_traits": "cpp", + "typeinfo": "cpp" + } +} \ No newline at end of file diff --git a/codebreak.cpp b/codebreak.cpp new file mode 100644 index 0000000..60f06ce --- /dev/null +++ b/codebreak.cpp @@ -0,0 +1,73 @@ +#include +#include +#include +#include +#include +#include + +std::string load_file(std::string filename, size_t end_cut = 0) +{ + std::stringstream ret; + std::ifstream file(filename); + while(file.good()) + { + ret<<(char)file.get(); + } + auto rret = ret.str(); + rret.resize(rret.size()-end_cut); + return rret; +} + +int main(int argc, char** argv) +{ + std::vector params; + for(int i=0;i