Skip to content

The "infix-to-postfix-prefix-converter" repository on GitHub contains a C++ project that converts infix expressions to postfix or prefix notation and evaluates them using stacks. The project includes a main.cpp file that prompts the user for an infix expression and outputs the converted expression and its evaluated result.

License

Notifications You must be signed in to change notification settings

Ctoic/Infix-Postfix-Prefix-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Infix to Postfix and Prefix Converter

This project provides a simple implementation of a stack-based algorithm to convert infix expressions to postfix (Reverse Polish Notation) and prefix (Polish Notation) expressions. It also includes functionality to evaluate postfix expressions.

Features

  • Infix to Postfix Conversion
  • Infix to Prefix Conversion
  • Postfix Expression Evaluation
  • Parentheses Matching and Expression Validation

Getting Started

Prerequisites

  • C++ compiler (e.g., g++, clang++)

Building

To build the project, you can use a simple makefile or compile directly using a C++ compiler. Here is a command to compile using g++:

g++ -o converter main.cpp

License

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

About

The "infix-to-postfix-prefix-converter" repository on GitHub contains a C++ project that converts infix expressions to postfix or prefix notation and evaluates them using stacks. The project includes a main.cpp file that prompts the user for an infix expression and outputs the converted expression and its evaluated result.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages