if we use queue from c++ stl, we don't need

//void enqueue(struct queue *q, int a)
//int dequeue(struct queue *q)

functions?

my TA has it on the slides but since the c++ queue has push and pop enqueue and dequeue isnt needed, right?

Recommended Answers

All 2 Replies

push and pop are std::queue's equivalent of enqueue and dequeue, respectively.

thanks

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.