title: 2D C++ Grid display
body: <p>Hi guys I have a 2D array of char '-' in it and I want to print it out. </p>
  
  <p>However I want to print it in a grid format so that the point (0,0) is on the bottom left of the array not the top left. </p>
  
  <p>For example now it's printing: </p>
  
  <pre><code>0 1 2 3
  1
  2
  3
  </code></pre>
  
  <p>and I want it to print in the way: </p>
  
  <pre><code>3 
  2   
  1
  0 1 2 3
  </code></pre>
  
  <p>How can I print my array in order to act more like a graph than an array?</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: This is what my printing function looks like</p>
  
  <pre><code>displayGrid(){
  for(int column = 0; column&lt;gridSize; column++){
      for(int row = 0; row &lt; gridSize; row++){
          std::cout&lt;&lt;gridArray[row][column]&lt;&lt; " ";
      }
      std::cout&lt;&lt;std::endl;
      }
  }
  </code></pre>
  
  <p>This is how I fill the elements in my array:</p>
  
  <pre><code>createGrid(){
  int gridSize = 50;
  for(int column = 0; column&lt;gridSize; column++){
      for(int row=0; row&lt;gridSize; row++){
          gridArray[row][column] = empty;
      }
  }
      //gridArray[0][1] = full;       first value is x, second is y. Works.
  
  }
  </code></pre>