could
this be of any interest ?
Or am i wrong here assuming you want pointers to functions in an array..
If you want to do the equivalent of something like:
Code:
Array $my_variables = { "item1", "item2", "item3"};
foreach ($item in $my_variables)
exec($item); Not specific any language here, but I think you'd get my guess, as to you're using strings to represent the variable names and uppon execution you want to access the variable values instead of the strings representing them..
It can't be done the way you are trying in C/C++