title: How to set value of an enum member of a structure
body: <p>The structure's code that is giving me problems is </p>
  
  <pre><code>typedef struct gamer
  {
      char name[MAXNAME];
      Cell token;
      unsigned score;
  } Gamer;
  </code></pre>
  
  <p>The enum is</p>
  
  <pre><code>typedef enum cell
  {
      BLANK, RED, CYAN
  } Cell;
  </code></pre>
  
  <p>When I try to set the value of my struct <code>Cell</code> member I use this code; </p>
  
  <pre><code> gamer1-&gt;Cell = RED;
  </code></pre>
  
  <p>however when compiling it gives me this error; </p>
  
  <pre><code>error: 'Gamer' has no member named 'Cell'". Thanks in advanced.
  </code></pre>