i made a struct Node
{
int value;
char s;
Node *left,*right;
};
when i write priority queue<Node> p , it gives me an error 'no match for operator<'in _x<_y'
any help
I've never used one of those queues, but I imagine that the queue is sorted according to some criterion, and for the looks of it, the criterion is operator<. Overload operator< for your Node struct.