An open API service indexing awesome lists of open source software.

https://github.com/ivandrf/calculator

Simple calculator created with C++ using the sfml library
https://github.com/ivandrf/calculator

calculator cpp sfml

Last synced: 4 months ago
JSON representation

Simple calculator created with C++ using the sfml library

Awesome Lists containing this project

README

          

# Calculator ![C++](https://img.shields.io/badge/-С++-090909?style=for-the-badge&logo=C%2b%2b&logoColor=6296CC)
Simple calculator created with C++ using the SFML library

![image](https://github.com/user-attachments/assets/43357961-16c6-423a-983b-af3af3ae2b33)

# :white_check_mark: Calculation Methods
* **Percent** of a number, for exmaple ***20 % 50 = 10***
* **Square** of a number, for example ***2^2 = 4***
* **Root** of a number, for example ***sqrt(4) = 2***
* **Division**, for example ***5 / 2 = 2.5***
* **Multiplication**, for example ***-2 x 5.5 = -11***
* **Subtraction**, for example ***3 - 5 = -2***
* **Addition**, for example ***-2 + 9 = 7***
* **Cl** - clears input field

***

# ✨ How to install
**Download this**
* [SFML 2.6.1](https://www.sfml-dev.org/download/sfml/2.6.1/)
* [Calculator Files](https://github.com/IvanDrf/Calculator/tree/develop)
* [CMake (optional)](https://cmake.org/)

**Build the project with [CMake](https://cmake.org/) or compile it these flags**
* g++ main.cpp Window.cpp Calculator.cpp -lsfml-window -lsfml-system -lsfml-graphics