Skip to content

akrisfx/calc_interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Calculator

Build

mkdir build
cd build
cmake ..
cmake --build .

Usage

./calc "math expresshion"

./calc "math expr with variables (x) + (y)" --var x=4 --var y=PI - if the name of var is not resolved it will turn to zero

The number of arguments is unlimited

Expansion

If you wnat add new tokens put token name in enum token.h And add math logic to calc.h and string parser calculatormodel.cpp

To add a new const value, enter the value in calculatormodel.h

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published