• Advertisement

Archived

This topic is now archived and is closed to further replies.

Trying to use a class object in a class.

This topic is 6246 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

Is there something special you need to do when doing this? Because it says that the function call needs a class struct union type. The necessary header is included in the class.... I tried using the scope resoloution operater but it did not work. Any help will be appreciated thanks. Sergio

Share this post


Link to post
Share on other sites
Advertisement
It isn''t exactly clear what you mean. Within C++ you have classes and instances of classes. Within some other object oriented languages you have objects and instances of objects. So it isn''t clear what a class object within a class would be. Do you mean declaring a class within a class or using an instance of a class within a class? If you mean using an instance of a class within a class do you mean an instance of the same class or a differant class? A skeleton of what you are trying to do would help a great deal.

Share this post


Link to post
Share on other sites

  • Advertisement