- It doesn't check for under/overflow;
- It is limited to signed integers;
- It only takes two operands;
- It only uses additions and substractions in the code;
- It is poorly designed (It only uses
writefrom<unsitd.h>); - For the exponentiation : 0⁰ = 1.
I know, it should be undefined.
- Compile with :
make -s- Delete .o files :
make clean - Delete .o files and the executable :
make fclean
- Delete .o files :
- addition
+; - subtraction
-; - multiplication
x; - factorial
f; - square root
s; - exponentiation
p; - euclidian division
/ - and modulo
%.
- The syntax is :
./c-calc number1 operator number2or./c-calc number1 operator; - A number can start with an arbitrary amount of whitespaces,
+and-signs; - The amount of
-signs determines the sign of the number : negative if odd, positive if even. - The operator is only a single character;
- A massive rework where I will include :
- the ability to use
doublenumbers;
- the ability to use