title: Initialize large two dimensional array in C++
body: <p>I want to have <strong>static</strong> and <strong>constant</strong> two dimensional array inside a class. The array is relatively large, but I only want to initialize a few elements and others may be whatever compiler initializes them to.</p>
  
  <p>For example, if a class is defined like:</p>
  
  <pre><code>class A {
  public:
    static int const test[10][10];
  };
  
  int const A::test[10][10] = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 7, 7, 7, 7, 0, 0, 0},
    {0, 0, 0, 7, 7, 7, 7, 0, 0, 0},
    {0, 0, 0, 7, 7, 7, 7, 0, 0, 0},
    {0, 0, 0, 7, 7, 7, 7, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  };
  </code></pre>
  
  <p>and I am interested only to initialize the elements marked with '7', how do I do this on the same elements, but with array of larger size, like array[1024][1024]?</p>