I'm very new to C++ and am rather confused as to how to make a Queue (our first homework assignment).
For the constructor, we're supposed to accept a length that the Queue should be. The Queue's length must in turn be the closest Fibonacci number greater than the given length if it is not already a Fibonacci number. (e.g.: if given 10 in the constructor, make the length 13).
Right now I'm implementing the Queue as an array. Should I have something like int queueContents[];
in the private part of my header, then set it to the closest Fibonacci number in the constructor?
How would I go about declaring it for use throughout the whole file and set its length in my constructor?