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

https://github.com/ctoic/infix-postfix-prefix-converter

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.
https://github.com/ctoic/infix-postfix-prefix-converter

communityexchange educative github github-campus-experts github-codespaces learn student-vscode

Last synced: 3 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

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

```sh
g++ -o converter main.cpp
```

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