Skip to content

easai/reverse-polish-notation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Polish Notation

Reverse Polish Notation (RPN), also known as postfix notation, is a mathematical notation in which every operator follows all of its operands.

The reverse-polish-notation reads and evaluates a mathematical expression written in RPN. It uses a stack to perform arithmetic operations and handles errors gracefully.

Compile the Script

The following will generate a.exe file.

g++ .\reverse-polish-notation.cpp

Run the Executable

Suppose we have the following RPN expression:

51 49 +

The corresponding infix expression is:

51 + 49 = 100

If you run the executable, you will get the following.

> ./a.exe
51
49
+
=
100

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages