Trying to use a class object in a class.

Started by
1 comment, last by nightsonic 23 years, 3 months ago
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
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.
Keys to success: Ability, ambition and opportunity.
post some code in [ source ] [ /source ] blocks
(and delete your double post)
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement