To build this project you will need make and CMake. To start we'll need a folder prefered with the name build.
mkdir buildAfter we createt the folder we go into it and execute the CMake command.
cmake ../srcThe ../src should show to the src directory in this project.
You can build it with
makeWe now should have a calculator file in our folder. We can easily execute this with
./calculatorAfter executing the calculator you can enter the first number.
Enter first number: 5 # 5 is the inputThen choose between the calculation functions.
Choose between:
1)Addition
2)Subtraction
3)Multiplication
4)Division
1 # < This is our inputWe now can enter the second number
Enter second number: 2 # 2 is the inputNow it should give the right output.
7 # 7 is the return value