title: storing the values from one char array to another char array
body: <p>I wrote this code: </p>
  
  <pre><code>shuffledteamnames[8][80]; // global
  winningteamnames[8][80]; // global
  int main()
  {
      if (team1 &gt; team2)
      {
          cout &lt;&lt; shuffledteamnames[index1] &lt;&lt; " beat the " &lt;&lt; shuffledteamnames[index2] &lt;&lt; " " &lt;&lt; team1 &lt;&lt; "-" &lt;&lt; team2 &lt;&lt; " in a game 1." &lt;&lt; endl;
          winningteamnames[WINTEAMcounter] = shuffledteamnames[index1];
      }
      else if (team1 &lt; team2) // index1 = 0, index2 = 1, WINTEAMcounter = 0
      {
          cout &lt;&lt; shuffledteamnames[index2] &lt;&lt; " beat the " &lt;&lt; shuffledteamnames[index1] &lt;&lt; " " &lt;&lt; team1 &lt;&lt; "-" &lt;&lt; team2 &lt;&lt; " in a game 1." &lt;&lt; endl;
          winningteamnames[WINTEAMcounter] = shuffledteamnames[index2];
      }
  }
  </code></pre>
  
  <p>The output of <code>shuffledteamnames</code> is something like this:</p>
  
  <pre><code>Trojans
  Bruins
  Bears
  Trees
  Ducks
  Beavers
  Huskies
  Cougars
  </code></pre>
  
  <p>I am trying to create a competition bracket where I take the winners of each round and place them into char array <code>winningteamnames</code>. I understand that these are 2D char arrays so I need to input data into both parameters, but I'm just not sure how to do that. Please let me know if I was vague at any point and I really appreciate all the help.</p>