Help me change this code.
I have to change this code with using template T
And i have to also put menu on main(1.infix to postfix.2.postfixevaluation 3.exit)(Whenever there is a user entry, thereis a validation)
// CODE
// Operators allowed : ‘+’ , ‘-‘ , ‘*’, ‘/’, ‘(‘, ‘)’ and ‘^’ (forexponentiation)
#include<iostream>
#include<string>
#include”IntStack.h”
using namespace std;
class infixEval {
private:
string infix;
string postfix;
// To verify whether a character is anoperand(letter or numeric digit) or not
bool is_operand(char c) {
return (c >= ‘0’&& c <= ‘9’) || (c >= ‘a’ && c <= ‘z’) ||(c >= ‘A’ && c <= ‘Z’);
}
// To verify
PayPal Gateway not configured
PayPal Gateway not configured