#include
<
iostream
>
#include < stack >
#include < string >
using namespace std;
int prior[ 1000 ] = { 0} ;
char oper[] = { '(',')','+','-','*','/','^'} ;
int testcase;
string expr;
char tmpchr,c;
class Node {
public:
char oper;
Node * left;
Node * right;
Node()
#include < stack >
#include < string >
using namespace std;
int prior[ 1000 ] = { 0} ;
char oper[] = { '(',')','+','-','*','/','^'} ;
int testcase;
string expr;
char tmpchr,c;
class Node {
public:
char oper;
Node * left;
Node * right;
Node()