title: matrix index notation in C++
body: <p>Can I index a multidimensional array with a single index?</p>
  
  <p>Ex:</p>
  
  <blockquote>
    <p>in memory, a multidimensional array is indexed like a single array
    (example in a matrix 2x2, matrix[1][1] is the fourth element of array,
    "matrix[3]") Is there a system to use this notation automatically? I
    want write matrix[3] instead of matrix[1][1]: is possible?</p>
  </blockquote>