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
- Host: GitHub
- URL: https://github.com/ivandrf/calculator
- Owner: IvanDrf
- Created: 2025-01-31T19:59:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T17:28:07.000Z (over 1 year ago)
- Last Synced: 2025-04-30T07:00:43.343Z (about 1 year ago)
- Topics: calculator, cpp, sfml
- Language: C++
- Homepage:
- Size: 240 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculator 
Simple calculator created with C++ using the SFML library

# :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