title: printling all probable outcomes c++?
body: <p>Hello i am trying to figure out how to write a code so that it loops and >prints all possible outcomes for example if we start off with an array. </p>
  
  <pre><code>string alphabet[2][4] = { {"A","D","G","J"},
                            {"B","E","H","K"}};
  </code></pre>
  
  <p>Now i need a set of loops that will print out all different possible outcomes
  using every element which should come out to be 16 possible outcomes. </p>
  
  <p>the example outcomes would be:</p>
  
  <pre><code>ADGJ
  ADGK
  ADHJ
  ADHK
  etc....
  </code></pre>