Skip to content

adeel-chaudharey/stack-based-gui-in-cpp

Repository files navigation

Stack-Based Expression Evaluator & Converter (GUI)

A Data Structures & Algorithms (DSA) project implemented in C++ with Qt GUI.
This application converts and evaluates Infix, Postfix, and Prefix expressions using stack data structures implemented via arrays and linked lists.


🎯 Project Objectives

  • Apply stack concepts in a real-world application
  • Implement expression conversion and evaluation algorithms
  • Practice modular C++ programming
  • Build a simple GUI using Qt (signals & slots)

🧠 Concepts Used

  • Stack (Array-based implementation)
  • Stack (Linked List-based implementation)
  • Infix, Postfix, Prefix expressions
  • Expression conversion algorithms
  • Expression evaluation
  • Exception & error handling
  • File handling (history storage)
  • Qt GUI (Widgets, Signals & Slots)

🖥️ Features

  • ✅ Convert Infix → Postfix
  • ✅ Convert Infix → Prefix
  • ✅ Evaluate Postfix expressions
  • ✅ Error handling for malformed expressions
  • ✅ Expression history displayed in GUI
  • ✅ Modular code structure
  • ✅ Clean and user-friendly GUI

🪟 GUI Overview

The application contains:

  • Expression input field
  • Buttons for:
    • Convert to Postfix
    • Convert to Prefix
    • Evaluate Expression
  • Result display field
  • History list showing previous operations

📂 Project Structure

About

thus was a simple DSA project to show a visual gui of how a stack works

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors