title: C/C++ private array initialization in the header file
body: <p>I have a class called Cal and it's .cpp and .h counterpart</p>
  
  <p>Headerfile has</p>
  
  <pre><code>class Cal {
      private:
          int wa[2][2];
  
      public:
          void do_cal();
  };
  </code></pre>
  
  <p>.cpp file has</p>
  
  <pre><code>#include "Cal.h"
  void Cal::do_cal() {
     print(wa) // where print just itterates and prints the elements in wa
  }
  </code></pre>
  
  <p>My question is how do I initialize the array <code>wa</code> ? I just can't seem to get it to work. </p>
  
  <p>I tried with :</p>
  
  <pre><code>int wa[2][2] = {
                  {5,2},
                  {7,9}
                 };
  </code></pre>
  
  <p>in the header file but I get errors saying I cant do so as it's against iso..something.</p>
  
  <p>Tried also to initialize the array <code>wa</code> in the constructor but that didnt work either.. What am I missing ?</p>
  
  <p>Thanks</p>