creating c++ queue with more than one datatype?
<p>I thought I was doing this right but it doesn't seem to be working.  I'm basically experimenting with a queue and it works fine with one data type but now I'm trying to add multiple(in the end I want to have a int and a list of ints).</p>

<p>Here's the code:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;queue&gt;
using namespace std;

int main()
{
    struct product {
      int x;
      int y;
    } ;


   queue&lt;product&gt; q;
   q.push(100, 100);
   q.push(200, 100);
   q.push(300, 100);
   q.push(400, 100);

   cout &lt;&lt; "Size of the queue: " &lt;&lt; q.size() &lt;&lt; endl;

   while (!q.empty()) {
       cout &lt;&lt; q.front() &lt;&lt; endl;
       q.pop();
   }

}
</code></pre>

<p>It works without the struct, but obviously it only accepts one variable for each item in the queue that way.  Is there a way to have multiple items?</p>
