title: foreach loop in 2D Arrays in C++
body: <p>I have a 3x3 2D array. I want to reach to all of it's elements. Is it possible? I do this:</p>
  
  <pre><code>int myArray[3][3];
  for(int &amp;i: myArray){
     //MY CODE HERE.
  }
  </code></pre>
  
  <p>But when I do, I get error:</p>
  
  <pre><code>error: C2440: 'initializing' : cannot convert from 'int [3]' to 'int &amp;'
  </code></pre>
  
  <p>I also use MSVC++ 2012 compiler on Qt 5.0 x64.
  And if it's possible to do so, then how can I get the index number of each element?</p>