Infinite number calculator.
This was my school (Epitech) project and I obtain the best mark (19/20) of the school since 3 years.
Sum
Substraction
Multiplication
Division
Modulo
Work in any base
Parse input expression, handle priorities and brackets
git clone https://github.com/ethanquix/Bistromathique.git
cd Bistromathique
make re
echo "expression" | ./calc [base] [ops] [expression length]
Example :
$ echo "12+6" | ./calc 0123456789 "+-*/%()" 4
$ 18
$ echo "--++-6*12" | ./calc 0123456789 "()+-*/%" 9
$ -72
$ echo "-(e@-(;*!@))" | ./calc "~^@!;ie& ]" "()+-*/%" 12
$ ee
dimitriwyzlic.com · GitHub @ethanquix · Linkedin Dimitri Wyzlic