title: Why is my array not updating?
body: <p>So I'm trying to make a dungeon crawl game(Basically a 10x10 map), And When I create the map(board) and change an element it doesn't print when I update it. I don't see anything wrong with my code and I have nowhere else to turn :(</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "ChadDung.h"
  using namespace std;
  
  int createBoard();
  int updateBoard();
  int clear();
  char board[10][10];
  int xp = 10;
  int yp = 4;
  
  int main() {
  
      createBoard();
      board[xp][yp] = 'G';
      clear();
      updateBoard();
  
  }
  
  int createBoard(){
      for (int x = 0; x &lt; 10; x++){
  
          for (int y = 0; y &lt; 10; y++){
              board[x][y] = '.';
              cout &lt;&lt; board[x][y];
          }
          cout &lt;&lt; endl;
      }
  }
  
  
  int updateBoard(){
      for (int x = 0; x &lt; 10; x++){
  
          for (int y = 0; y &lt; 10; y++){
              cout &lt;&lt; board[x][y];
          }
          cout &lt;&lt; endl;
      }
  }
  
  
  int clear(){
      cout &lt;&lt; string( 25, '\n' );
  }
  </code></pre>
  
  <p>There should be a 'G' on the bottom row but it just shows ".........."</p>