We have given an Arithmetic Expression and we have to write a program that converts the infix to postfix using stack in C. The Expression will be given in the form of a string, where alphabetic characters i.e a-
{ while (order(in[i]) <= order(s1.top())) { postfix += s1.top(); s1.pop(); } s1.push(in[i]); } } } return postfix; } int main() { string s; cout<< "Enter Infix: "<<endl; //cin>>s; s = "55+8"; cout << "infixToPostfix: "<<inToPost(s) <<endl; return ...
The project contains algorithms that were implemented in my Data Structure & Algorithms course. Yes, I got marks for those. :P AlgorithmImplementations ├─ arithmeticExpressions │ ├─InfixEvaluation │ ├─InfixToPostfix │ ├─InfixToPrefix ...