Is it possible to use a name instead of a number to address an array? I was reading about enum lists and thought it might be possible. ie int array[3] = {something, somethingElse, somethingMore]
array[second] => somethingElse
I am asking as I have an array looking after flags for several functions and would like to be able to use the function name instead of a number to address the array.
bool flag[6] = {1, 1, 1, 1, 1, 0}; // Power, Jump 3, Jump 7, Fade 3, Fade 7, Pause active