title: C++ expression must be a modifiable value
body: <pre><code>struct PLANE {FLOAT X, Y, Z; D3DXVECTOR3 Normal; FLOAT U, V;};
  
  class PlaneStruct
  {
  public:PLANE PlaneVertices[4];
  public:DWORD PlaneIndices;
  
  void CreatePlane(float size)
  {
      // create vertices to represent the corners of the cube
      PlaneVertices = 
      {
          {1.0f * size, 0.0f, 1.0f * size, D3DXVECTOR3(0.0f, 0.0f, 1.0f), 0.0f, 0.0f},    // side 1
          {-1.0f * size, -0.0f, 1.0f * size, D3DXVECTOR3(0.0f, 0.0f, 1.0f), 0.0f, 1.0f},
          {-1.0f * size, -0.0f, -1.0f * size, D3DXVECTOR3(0.0f, 0.0f, 1.0f), 1.0f, 0.0f},
          {1.0f * size, -0.0f, -1.0f * size, D3DXVECTOR3(0.0f, 0.0f, 1.0f), 1.0f, 1.0f},
      };
  
      // create the index buffer out of DWORDs
      DWORD PlaneIndices[] =
      {
          0, 2, 1,    // side 1
          0, 3, 2
      };
  }
  };  
  </code></pre>
  
  <p>This was my code for a "plane" structure, i just have one question, if you look at the top it says PLANE PlaneVertices[4]; and then in a function i wanted to define it, so to give it specific values, but i get the following error:
      Expression must be a modifiable value.
  Please help</p>