Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Queue question. 1

Status
Not open for further replies.

keat

Programmer
Jan 16, 2002
3
0
0
US
How do I add a member function to the pointer-based queueClass called QueueMultiDelete that works like QueueDelete except that it also takes an integer parameter that indicates the number of items to remove. Thanks for the help.

Keat.
 
do you really need it or would this function work?

void multiDelete(int x,queue q)
{
for(int i = 0;i<x;i++)
q.dequeue();
}

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top