<p>I was wondering in C++ if I have an enum can I access the value at the second index?  For example I have</p>

<pre><code>enum Test{hi, bye};
</code></pre>

<p>if I want 'hi', can I do something like Test[0], thanks.</p>

Enumerations map names to values.  In your case, (int)hi would have a value of 0, and (int)bye a value of 1.  You can use a cast to get the value of hi:
```
```
int myInteger = 0;
Test myValue = (Test)myInteger;
```
```
Note, though, that myValue could be an invalid enum value if myInteger is out of range.