P
peacelittleone
I have an array:
double myArray[108]
I have an enum list:
emum myDataList { A_1, B_1, C_1 ... I_1,
A_2,..............I_2,
....
A_12,.............I_12}
Each value of the array is sequentially represented by the enum list.
I have a counter:
int myCounter
Here is my problem...
I need to be able to reference the array one "row" at a time by enum
name.
example:
myA_Term = myArray[A_1];
myB_Term = myArray[B_1];
etc...
I have a loop to go through the array, one row at a time, but I don't
know how to change the array index to call the right row information by
name.
First time through:
myA_Term = myArray[A_1];
Second time through:
myA_Term = myArray[A_2];
QUESTION:
Is there a way to do something like:
myA_Term = myArray[A_myCounter]; ( i know this is wrong )
where I can get to the value of myCounter.
Thanks in advanced!!!!
Heather.
double myArray[108]
I have an enum list:
emum myDataList { A_1, B_1, C_1 ... I_1,
A_2,..............I_2,
....
A_12,.............I_12}
Each value of the array is sequentially represented by the enum list.
I have a counter:
int myCounter
Here is my problem...
I need to be able to reference the array one "row" at a time by enum
name.
example:
myA_Term = myArray[A_1];
myB_Term = myArray[B_1];
etc...
I have a loop to go through the array, one row at a time, but I don't
know how to change the array index to call the right row information by
name.
First time through:
myA_Term = myArray[A_1];
Second time through:
myA_Term = myArray[A_2];
QUESTION:
Is there a way to do something like:
myA_Term = myArray[A_myCounter]; ( i know this is wrong )
where I can get to the value of myCounter.
Thanks in advanced!!!!
Heather.