Hi, I was wondering how a person could use a structure and have classes access it. (I'm not sure if I'm using the correct terminology or not.) Would the struct go in the public: portion of the base class? Does it go outside of the class? Could somebody try to explain how this would work? Thanks for any help on this matter! mcorn
Code:
struct mystruct
{
char name[20];
int age;
};
class cBaseClass
{
private:
int whatever;
public:
cBase();
int whatever(); Access the struct somehow?
};
class cChildClass
{
private:
etc
public:
cChildClass: public cBase : access the struct somehow?
};