Sign in to follow this  

linked lists and classes

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all. I have a class called CPhysicsObject and a lot of other classes that are defined CLASSNAME : public CPhysicsObject. Since I want to update the physics variables of the objects all at the same time I'd like to put them in a (double) linked list then run through the list and update them. The only problem is that I don't know what to point to, since I don't know what class the next object would be. I only know that its a ' : public CPhysicsObject'... Can I create a pointer pointing to the class (CLASSNAME : public CPhysicsObject) with a pointer to a basic CPhysicsObject? Thanks, Marty PS: I'm Dutch and don't know what it's called in English when a class is derrived from another. So that information is welcome too :D.

Share this post


Link to post
Share on other sites

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this