Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

function calling in c++

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?

Name: Anonymous 2007-01-11 1:59

>>3
sorry to bother again, but it's having problems with instantiating the class...
Array[0] = new SampleClass2;
style coding is coming up with
"expected constructor, destructor, or type conversion before '=' token"
I'm using dev-cpp, btw if that matters
know what i'm doing wrong?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List