Skip to content

RezaGooner/prefix-postfix-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Prefix-Postfix Algorithms

This repository contains C++ implementations of Prefix, Postfix, and Infix expression conversion algorithms. These algorithms are fundamental for understanding how expressions are parsed and evaluated in computer science.

Features

  • Prefix to Infix Conversion
  • Postfix to Infix Conversion
  • Evaluation of Postfix Expressions

Installation

Clone this repository to your local machine:

git clone https://github.com/RezaGooner/prefix-postfix-algorithms.git

Then compile and run the C++ code using your preferred IDE or command line:

g++ main.cpp -o expression-converter
./expression-converter

Example Usage

  1. Prefix to Infix: Convert a prefix expression (e.g., + A B) to its infix form (A + B).
  2. Postfix to Infix: Convert a postfix expression (e.g., A B +) to its infix form (A + B).

License

This project is licensed under the Apache-2.0 License.


Feel free to adjust the content to match any specific details or functionality you would like to highlight!

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages