Files
cpp09/ex01/RPN.hpp
2026-04-24 13:07:32 +02:00

37 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RPN.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/04/24 12:37:09 by aortigos #+# #+# */
/* Updated: 2026/04/24 12:37:09 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef RPN_HPP
# define RPN_HPP
# include <iostream>
# include <stack>
# include <sstream>
# include <cstdlib>
class RPN
{
private:
std::stack<int> numbers;
public:
RPN();
RPN(const RPN &other);
RPN& operator=(const RPN &other);
~RPN();
bool isToken(std::string token);
void math(std::string data);
};
#endif