Skip to content
There are two algorithms for evaluating an expression: by stack & by recursive function.
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
recursive.cpp
stack.cpp

README.md

Evaluate Expression

Introduction

There are two algorithms for evaluating an expression:

Quick Usage

$ g++ stack.cpp && ./a.out
infix   : 1*(2+3/4)
postfix : 1234/+*
evaluate: 2
$ g++ recursive.cpp && ./a.out
infix   : 1*(2+3/4)
evaluate: 2

Reference

You can’t perform that action at this time.