Skip to content

simple c++ CLI calculator written with a grammar to parse the input calculation and implemented with OOP.

Notifications You must be signed in to change notification settings

ouhadjilyes/CLI_cpp_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CLI_cpp_calculator

A simple CLI c++ calculator written with a grammar to parse input calculations implemented with OOP.

Installation:


Follow these steps and type this code on the command line to clone and run this calculator :

 $ git clone https://github.com/ouhadjilyes/CLI_cpp_calculator.git
 $ cd CLI_cpp_calculator
 $ g++ calculator.cpp -o my_calculator
 $ ./my_calculator

or : -Directly run the program , I have already provided the executable file :

  $ git clone https://github.com/ouhadjilyes/CLI_cpp_calculator.git
  $ cd CLI_cpp_calculator
  $ ./calculator

NOTE (Important) :

  • Each calculation or expression you give this calculator must end with a semicolon (;) otherwise it wouldn't work !!

example :

    > 2+32*3;
    > 23+1  // error

About

simple c++ CLI calculator written with a grammar to parse the input calculation and implemented with OOP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages