title: C++ 2D int array outputting random symbols
body: <p>I'm trying to output a 2D int array into a string with this code:</p>
  
  <pre><code>string sGrid;
  
  for(int a=0;a&lt;6;a++){  
    for(int b=0;b&lt;7;b++)
      sGrid+=grid[a][b]+"\t";
    sGrid+="\n";
  }
  </code></pre>
  
  <p>when I print this string to cout I get these random characters:</p>
  
  <pre><code>_
  .txttxtxtt
  ¨€+'*€+'*+'*'*'**
  *
  </code></pre>
  
  <p>The grid is filled with:</p>
  
  <pre><code>count=1;
  for(int a=0;a&lt;6;a++){
    if(bStart){
      for(int b=dayOfWeek;b&lt;7;b++){
        grid[a][b]=count;
        count++;
      }
    }
    else{
      for(int b=0;b&lt;7;b++){
        grid[a][b]=count;
        count++;
        if(count&gt;=numOfDays)
          break;
      }
    }
    bStart=false;
    if(count&gt;=numOfDays)
      break;
  }
  </code></pre>
  
  <p>Full source code found here: <a href="https://docs.google.com/file/d/0BwSiqZ1tirZvN1dvYlZtOFVUZDA/edit?usp=sharing" rel="nofollow">source code</a></p>