Skip to content

yanlinlin82/eval-exp

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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

About

There are two algorithms for evaluating an expression: by stack & by recursive function.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages