Skip to content

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

License

Notifications You must be signed in to change notification settings

yanlinlin82/eval-exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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