ex01 done

This commit is contained in:
2026-04-24 13:07:32 +02:00
parent 50cfaa5fcc
commit 270ddf75ae
4 changed files with 214 additions and 0 deletions

36
ex01/RPN.hpp Normal file
View File

@@ -0,0 +1,36 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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