Manually setting values in 2Darrays C++
<p>Simply put an array can be defined with</p>

<pre><code>int arrayValues = {1,2,3,4,5};
</code></pre>

<p>How do you define in a similar manor with a double array to avoid writing this out...</p>

<pre><code>int magicArray[rowSize][colSize];

magicArray[0][0] = 4;
magicArray[0][1] = 3;
magicArray[0][2] = 8;

magicArray[1][0] = 9;
magicArray[1][1] = 5;
magicArray[1][2] = 1;

magicArray[2][0] = 2;
magicArray[2][1] = 7;
magicArray[2][2] = 6;
</code></pre>

<p>Is it possible to write something like...</p>

<pre><code>int magicArray[rowSize][colSize] = { {x,y,value}, {0,0,1}} 
</code></pre>