Skip to content

fludar/calculator-sfml

Repository files navigation


Calculator
SFML Calculator

A simple and interactive calculator made in C++ using the SFML library and the Shunting Yard Algorithm.

Key FeaturesBuild InstructionsScreenshotCreditsWhat did I learn?License

🧮 Key Features

  • GUI built using SFML
  • Parses and evaluates expressions using the Shunting Yard Algorithm
  • Clean and responsive button-based input
  • Supports basic arithmetic operations (+, -, *, /)
  • Keyboard and mouse support

🛠 Build Instructions

This project uses Visual Studio Code as the main development environment.

To build it:

  1. Install SFML and set it up on your system.
  2. Install the C++ extension in VS Code.
  3. Make sure your compiler (MSVC or MinGW) is correctly configured.
  4. Open this folder in VS Code.
  5. Add SFML include/lib paths to your tasks.json or build command.
  6. Press Ctrl+Shift+B to build the project.

If you're not sure how to link SFML in VS Code, this guide can help.

📸 Screenshot

screenshot

🙏 Credits

📖 What did I learn?

  • How to create a GUI application using SFML
  • How to implement the Shunting Yard Algorithm in C++
  • How to handle user input with both keyboard and mouse
  • How to manage application state and events in a graphical application
  • How to structure a simple calculator application
  • How to use C++ standard libraries effectively in a GUI context

📄 License

This project is licensed under the MIT License – see the LICENSE file for details.

About

Simple calculator made in C++ using SFML library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages