title: c++ class array initialization
body: <p>so I have this class in the header</p>
  
  <pre><code>class C{
  
     int b [2];
  
     init();
  
  }
  </code></pre>
  
  <p>and in C.cpp I have</p>
  
  <pre><code>C::init(){
  
     bK [2] = {3,7};
  }
  </code></pre>
  
  <p>whereby I try to initialize the class variable b which is an array</p>
  
  <p>but then the compiler returns the error <code>expected ; before { token</code> and <code>expected primary expression before { token</code> </p>
  
  <p>what did i do wrong and how do I properly initialize array class variables?</p>