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.
- Host: GitHub
- URL: https://github.com/ctoic/infix-postfix-prefix-converter
- Owner: Ctoic
- License: mit
- Created: 2023-02-28T08:24:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T11:56:14.000Z (about 1 year ago)
- Last Synced: 2025-01-14T11:38:17.249Z (5 months ago)
- Topics: communityexchange, educative, github, github-campus-experts, github-codespaces, learn, student-vscode
- Language: C++
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.