Hi!

I am having trouble many a queue of Nodes.
I have a class of Queue (user defined - as I am not allowed to STL), with methonds as enqueue(), dequeue() and getFront().
And also I have a class of Node with data and frequency in it.
Now I have to make queue with nodes in it.

I am declaring it as

Queue Node_array[50];

but its not working.

Will appreciate early reply.

Thanks.

Assuming you are setting it something like this :

class Node{
//...
};
template<typename Type>
class Queue{
//...
};

int main(){
 Queue<Node> queueNodes;
}

If not then post some code so it will be more clearer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.