Advertisement
spacechase0

Untitled

Dec 29th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. class A
  2. {
  3.     public:
  4.         A() : i( new int ) {}
  5.         int* i;
  6. }
  7.  
  8. A a;
  9.  
  10. class SetA
  11. {
  12.     public:
  13.         SetA( int i )
  14.         {
  15.             ( * a.i ) = i;
  16.         }
  17. } setter( 2 );
  18.  
  19. int main()
  20. {
  21.     // What executes first?
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement