struct node{
double dat;
char oper;
node *left,*right;
}
vector <node> data;
vector <node> op;
Here I declare my node struct and Trying to store a vector of nodes. It’s a simple Binary Tree node.
ERROR occurs when I declare vectors. It says: “invalid declarator before data” and same when I declare op.
Would you please Explain where’s my fault and how to take a vector of structs?
🙂 THANKS!!!
perhaps you missed the semicolon after the structure decleration.