「✨」 feat(ex01): RPN is working :D
This commit is contained in:
21
ex01/main.cpp
Normal file
21
ex01/main.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user