I got some constant int
values I would like to use, So I used #define.
The issue is that I got some define names like this:
#define a1 123
#define a2 6543
#define a3 12
...
Is there a way in the code to somehow iterate over them to construct their name with strings and then get the define value of that constructed strings? A pseudo code of what I mean:
for(int i =0 ; i < 100; i++)
{
string name = "a" + i;
func(GetDefineName(name)); // should call here every time to func with a1,a2 etc.
}
I'm used to C# so I got some problems getting used to c++. Is define really the most appropriate way to do that?