Name: Anonymous 2007-01-10 20:23
I'm kinda new to c++, and I have a question that I can't really define well enough for google to give me answers.
basically, what i want to do is loop through a list of classes that i know have a specific function and call it. I've tried something like
*(ObjectArray[0] + loop).function();
where ObjectArray would be an string array that holds all of the function names. This fails, because function() is not defined, even though I've declared it in the class.
Any ideas?
basically, what i want to do is loop through a list of classes that i know have a specific function and call it. I've tried something like
*(ObjectArray[0] + loop).function();
where ObjectArray would be an string array that holds all of the function names. This fails, because function() is not defined, even though I've declared it in the class.
Any ideas?