ex01 done
This commit is contained in:
36
ex01/RPN.hpp
Normal file
36
ex01/RPN.hpp
Normal 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
|
||||
Reference in New Issue
Block a user