Share
Explore BrainMass

Implement the specification for an integer function

Implement the following specification for an integer function in the client program that returns the number of items in a queue. The queue is unchanged.

int GetLength(QueType queue)
Function: Determines the number of items in the queue.
Precondition: queue has been initialized.
Postconditions: queue is unchanged.
Function value = number of items in queue.

Solution Summary

The solution gives a complete C++ code to implement the given specification for an integer function in the client program that returns the number of items in a queue which is unchanged.

$2.19