Struct in a Class
class foo{public: char c;private: struct bar{ int a; int b; };}
Within foo you can create instances of bar and use them normally, you just can''t use them outside of foo. Had bar been declared as public, you could declare stuff like foo::bar b;
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement