Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A{
- A *_a;
- int _c;
- public:
- A(){ _a=0; _c=50; }
- A* b(){
- if(!this) return 0;
- return _a;
- }
- int c(){
- if(!this) return 0;
- return _c;
- }
- };
- int main(){
- A a;
- int v=a.b()->b()->c();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement