Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.01 KB

gtk-calculator

This is just a simple calculator in GTK+3 which uses postfix evaluation algorithm to calculate the given mathematical expressions. It may not be much useful to someone as a daily use calculator, but it can help someone who wants to learn of its implementation, or someone who's looking for some simple GTK3 examples, or how postfix evaluation algorithm can be implemented for calculator in C.

Building

This is a cmake project so cmake must be installed to compile this project.

First, create a build directory and change into it.

mkdir -v build && cd build

Then, run cmake over the parent directory as it contains the CMakeLists.txt project file.

cmake ..

Now, simply run make to create the final program executable. The final executable calku will get created in the same build directory.

make

Running

Execute the executable calku to run the calculator.

./calku

License

This project is under MIT License