Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for nielsp

Why does'nt the following code work? [code="cplusplus"] #include <iostream> class X { public: X() : m(0) { } virtual ~X() { } protected: int m; }; class Y : public X { private: class Z { void do_something() { std::cout << m << std::endl; } }; }; [/CODE] I get …

Member Avatar for nielsp
0
3K