Calling copyQueue in main.cpp
<p>I am thoroughly confused as to what my instructor is asking me to do.  The sample output of our program that he provided say that :
"Sending q1 as an argument to test the copy constructor"</p>

<p>So I am unsure what he is asking.</p>

<p>I have created a copyQueue Function here: </p>

<pre><code>template &lt;class Type&gt;
void queueType&lt;Type&gt;::copyQueue(/*const*/ queueType&lt;Type&gt;&amp; otherQueue)
//I omitted the const qualifier as I kept getting error messages when it was included
{
    if(otherQueue.queueFront=NULL) {
        initializeQueue();
    } else {
        count = otherQueue.count;
        maxQueueSize= otherQueue.maxQueueSize;
        queueFront = otherQueue.queueFront;
        queueRear = otherQueue.queueRear;
        list= new Type[maxQueueSize];
        assert(list!=NULL);

        for(int i = queueFront; i&lt;queueRear; i++)
            list[i]= otherQueue.list[i];
    }//end else
}//end function
</code></pre>

<p>And a Function that will print the contents of the queue:</p>

<pre><code>template &lt;class Type&gt;
void queueType&lt;Type&gt;::debugArray() {
    for(int current =queueFront; current&lt;count; current++) {
        cout&lt;&lt;"[" &lt;&lt; current&lt;&lt;"] ,"&lt;&lt; list[current]&lt;&lt;" ";
    }
    cout&lt;&lt;"\n"&lt;&lt;endl;
} //end debugQueue
</code></pre>

<p>I am I to assume that I should call copyQueue like such in the main.cpp:</p>

<pre><code>#include &lt;iostream&gt;
#include "queueAsArray.h"

using namespace std;

int main() {
    queueType&lt;int&gt; q1;
    queueType&lt;int&gt; q2;

    for(int i= 0; i&lt;10; i++)
    q1.addQueue(i);
    q1.debugQueue();

    q1.copyQueue(q1);
    q1.debugQueue();

    return 0;
}
</code></pre>

<p>When I do this nothing happens the second time I call <code>debugQueue</code>.
I have sample output and from it I am to assume that I need to send q1 as an argument to the <code>copyQueue</code> function and then call <code>debugQueue</code> again to show that the queue still has components in the queue.</p>

<p>I am a little lost and confused as to why it will not print a second time.  Any thoughts?  This is just a snippet of my work so If you need the entire implementation file or the complete main.cpp file let me know.  Or if you need the sample output example I can also provide that too.</p>

<p>Thanks</p>
