title: How do we make queues and commands buttons based of size N?
body: <p>I am given a size N. From the size N, i need to generate some sort of char 1, char 2...... all the way to char N   and make a queue associated with that char. Example if i had N = 3.   Then it will generate a1, a2 ,a3  and this will be corresponding to queue 1 , queue 2 , queue 3....  My problem is whenever i use a "for loop" for char a[i] = ai. it won't work. at the bottom is a sample code</p>
  
  <pre><code>#include &lt;queue&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  void gen(int N)
  {
      queue&lt;int&gt; qu[N];
      char a[];
      for(int i = 0; i &lt; N; i++)
      {
           a[i] = ai; // i want it to print a1, a2, a3 and 
                           //i want the queue associated with it
      }
  }
  
  
  int main()
  {
       int N; 
       char b;
       cout &lt;&lt; "Type a number for Size" &lt;&lt; endl;
       cin  &gt;&gt; N;
       cout &lt;&lt; "Type a command" &lt;&lt; endl;
       cin &gt;&gt; b;
       gen(N);
       if( b == 'a1')
       {
            //does something
       }
  
  
  }
  </code></pre>