Trying to use a class object in a class.
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
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.
Keys to success: Ability, ambition and opportunity.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement