Hello,
I have some variables defined like so:
Now I can easily access these variables using their names. However I am looping through and array, the keys of which are a, b, c, d. Therefor, I would like something to the effect of:
So that the Log output would look like:
23.4323
4.24
78.325
1.01
Thanks!
I have some variables defined like so:
Code:
#define var_a 23.4323
#define var_b 4.24
#define var_c 78.325
#define var_d 1.01
Now I can easily access these variables using their names. However I am looping through and array, the keys of which are a, b, c, d. Therefor, I would like something to the effect of:
Code:
//array loop start, loop keys a, b, c, d
NSLog(var_[append current key]);
//array loop end
So that the Log output would look like:
23.4323
4.24
78.325
1.01
Thanks!