Read my 1st post. You don't know how to use the tree so here's an example. A tree is nothing more than a bunch of nodes connected together.
Code:
//done on the fly, in the post editor
#define NODETYPE_OPERATOR 1
#define NODETYPE_NUMBER 2
struct Node{
int value;//interger, or ascii value of operator
int type;
Node *left;
Node *right;
}
//to print, in infix
void print(Node *n){
if(n->type==NODETYPE_OPERATOR){
print(n->left);
//print operator your way
print(n->right);
}else if(n->type== NODETYPE_NUMBER){
//print number your way
}
}