-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
27 lines (25 loc) · 1.07 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wcorrea- <wcorrea-@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/04 19:27:50 by wcorrea- #+# #+# */
/* Updated: 2023/09/10 22:44:11 by wcorrea- ### ########.fr */
/* */
/* ************************************************************************** */
#include "RPN.hpp"
int main(int ac, char **av)
{
try
{
if (ac != 2)
throw std::runtime_error(USAGE);
rpn(av[1]);
}
catch (std::runtime_error &e)
{
std::cout << e.what() << std::endl;
}
}