Skip to content

Just trying out to create a simple calculator in GTK+3 using postfix evaluation algorithm

License

Notifications You must be signed in to change notification settings

darajnish/gtk-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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