init: gtest and quiz 1.

This commit is contained in:
2025-05-19 21:09:08 +08:00
commit 992103fd7b
258 changed files with 113483 additions and 0 deletions

21
mixplus/main.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include <iostream>
#include <parser.h>
int main(const int argc, const char** argv)
{
try
{
const auto value = mixplus::Parser::parseAndAdd(argc, argv);
const auto result = mixplus::Parser::formatResult(value);
std::cout << result.hexadecimal << ' ' << result.digit << std::endl;
}
catch (std::invalid_argument& e)
{
std::cout << e.what() << std::endl;
std::cout << "ERROR" << std::endl;
}
return 0;
}