title: error: expected expression before { in c++
body: <p>I am trying to initialize a one dimensional array as a member variable inside a class but I'm getting an expected expression error</p>
  
  <p>here is the declaration inside the tetris.h file:</p>
  
  <pre><code>private:
      int* rotate(char piece,int rot);
  
      int width;
      int* heights;
      char* data[0];
      const string blockkeys;
      int *blocks;
  };
  </code></pre>
  
  <p>and here is the constructor:</p>
  
  <pre><code>Tetris::Tetris(int w):blockkeys("IOJLZST"){
  blocks = new int[7*4*2]={
      0,0,0,1,0,2,0,3,
      0,0,0,1,1,1,1,0,
      0,0,1,0,1,1,1,2,
      0,0,1,0,0,1,0,2,
      0,0,1,0,0,1,-1,1,
      0,0,1,0,1,1,2,1,
      0,0,-1,1,1,1,2,1};
  width=w;
  heights=new int[width];
  char *data[width];
  for (unsigned int i=0; i&lt;width; ++i){
      data[i]=new char[0];
      heights[i]=0;
  }
  }
  </code></pre>
  
  <p>the error is happening immediately after "new int[7*4*2]=" and before "{"</p>