- Code: Select all
struct thing1
{
int a;
};
class Thing
{
public:
thing1* b;
};
I thought that to access the struct part of the class it would be
- Code: Select all
Thing* apple;
apple->b->a;
But I get a compiler error saying that this "a" is not a member of b. Is this a special rule in c++?[/code]



