title: Structs - expression must be a modifiable value
body: <p>I'm new to structs and I'm struggling a bit.
  I have the following struct:</p>
  
  <pre><code>typedef struct 
  {
      CHAR_t bWpId[10];
      CHAR_t bWpDescr[25];
      UINT16_t wCoA;
      sUtmCoordinate_t Coordinate;
  } sWaypoint_t;
  
  typedef struct
  {
      sWaypointListElement Element[cMAX_WAYPOINTS];
      UINT8_t bHead;
      UINT8_t bTail;
      UINT8_t bNumElements;
  } sWaypointList;
  </code></pre>
  
  <p>Now each waypoint is an element in a waypointlist which is also a struct.</p>
  
  <pre><code>class CWaypointList
  {
      private:
          sWaypointList WaypointList;
  }
  </code></pre>
  
  <p>Now my question is how do I read in values in each element of the struct without writing accessors? Is accessors the only way to access the data within a private struct?</p>
  
  <p>If I do it like this I get the error : expression must be a modifiable value.:</p>
  
  <pre><code> element.bWpId = {'0','0','0','0','0','0','0','0','0','1'};
  </code></pre>