"It does not run" is not really a very useful description of the problem. I recently formatted and reinstalled, and I don't have a compiler installed to check your code with so I'm looking at it in Notepad. It's a bit difficult to tell what's wrong with it when you don't say what the error is.
This means that you have declared a Constructor (Extended_queue()) in the class Extended_queue and you haven't actually handled it or written any code for that. Either get rid of that or add a function to handle the constructor like this:
PHP Code:
//Do whatever you want in this constructor
Extended_queue::Extended_queue()
{
}
Other than that, the program runs fine but I don't think it does what it's supposed to.
Here is the file with most functions working except for the
retrieve_and_serve function and printing the queue,
so if anyone help me with "retrieve_and_serve " and write code for printing queue ,I'll appreciate it
P.S the retrieve and serve functions must return a value for retrieve but if I add const as in
I have no clue what this queue thingy is all about (don't have enough time to look at the whole code) but when add a const to a function, you are saying that the definition inside that function won't effect any variable outside itself. Like you can't do "count--;" in that function if you declare it as const. I don't think it has to do anything with the return value.