G
GMM50
I've got a project that has 100 settings. In C I've defined these
settings in an array:
#define SETTING_MAX 100
int Setting[SETTING_MAX];
The user refers to them as setting[1] through setting[100].
Internally I refer to them as setting[0] through setting[99].
Initially I was hidiing the conversion from the user; that is, taking
the user input and subtracting one from it. But this is driving me
nutty.
There are a dozen places where I apply this through out the project not
just one array.
For size constraints I can not use an array from 0 to 100.
Has anyone come up with a good solution to this issue.
Thanks in advance
George
settings in an array:
#define SETTING_MAX 100
int Setting[SETTING_MAX];
The user refers to them as setting[1] through setting[100].
Internally I refer to them as setting[0] through setting[99].
Initially I was hidiing the conversion from the user; that is, taking
the user input and subtracting one from it. But this is driving me
nutty.
There are a dozen places where I apply this through out the project not
just one array.
For size constraints I can not use an array from 0 to 100.
Has anyone come up with a good solution to this issue.
Thanks in advance
George