Which component is giving you the most trouble? The instructions seem to be a good starting point. Try to implement at least some portion of it (class, two constructors, etc.) and post your code and someone will help.
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
Array should be a pointer to int, because you're going to instantiate it to a certain size in the constructors. As you probably know, your syntax on the constructors is not correct.
Follow the directions:
There should be two constructors:
One that takes no argument creates a Queue object of maxQ=100 values.
One that takes a parameter q and creates a Queue object of maxQ=q values.
Note that maxQ should probably be a private member variable.
If for some reason you are trying to do this class and pick up C++ at the same time, run through some tutorials before you take this on. The time invested now will be returned when you don't have to keep looking up fundamentals.
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581