」 feat(ex01): RPN is working :D

This commit is contained in:
2025-08-27 15:58:23 +02:00
parent b9919ed1e6
commit 1458548d67
5 changed files with 145 additions and 0 deletions

21
ex01/main.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include "RPN.hpp"
int main(int ac, char **av)
{
if (ac == 2)
{
try
{
rpn(av[1]);
}
catch(std::exception &e)
{
std::cerr << e.what() << std::endl;
}
}
else
{
std::cerr << "Error: wrong usage." << std::endl;
}
}