title: Array of values within an ENUM?
body: <p>I have this code</p>
  
  <pre><code>enum type {NOTHING, SOMETHING, SOMETHINGELSE}
  type *x;
  </code></pre>
  
  <p>At the moment I use <code>x[765] == SOMETHING</code> for example, How would I store other values for example</p>
  
  <pre><code>x[765] == SOMETHINGELSE;
  x[765].position == 43.5;
  x[765].somevar == 12;
  </code></pre>
  
  <p>I will apologize for my poor wording within my question im just starting out in C++, I know what I want i'm just not to sure on how to ask it.</p>
  
  <p>Thanks.</p>