title: Using a capacity-constrained queue to list off strings in order?
body: <p>My professor made us write single <code>char</code> queue (no templates, just char), which I did without too much trouble.  Now I have use it to write a driver (main()) that will print out every combination of the sequence ABC.</p>
  
  <p>The strings have to be generated in the following order:</p>
  
  <pre><code>A
  B
  C
  AA
  AB
  AC
  BA
  BB
  BC
  CA
  CB
  CC
  AAA
  AAB
  AAC
  ABA
  ABB
  ABC
  ACA
  ACB
  ACC
  etc.
  </code></pre>
  
  <p>The MAX_SIZE = 10 for the queue, so it's supposed to throw overflow exception after about 25 strings.</p>
  
  <p>here's the hint:</p>
  
  <pre><code>Start with A and B and C in the queue.
  “Remove it Display it then Add Add  Add ”
  </code></pre>
  
  <p>Which kinda makes sense but I don't get how to make the main control structure transition up a character length everytime you know (like once it does all single characters move to double, then to triple, etc).</p>