Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 600 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 600 Bytes

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