22 lines
239 B
C++
22 lines
239 B
C++
#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;
|
|
}
|
|
}
|
|
|