Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <windows.h>
  3.  
  4. class the_class
  5. {
  6. private:
  7. public:
  8.     the_class()
  9.     {
  10.         printf("Two!\n");
  11.     }
  12.     ~the_class()
  13.     {
  14.         printf("Three.\n");
  15.     }
  16. };
  17.  
  18. the_class object;
  19.  
  20. int main(int argc, char** argv)
  21. {
  22.     printf("One!\n");
  23.  
  24.     {
  25.         the_class x;
  26.     }
  27.  
  28.     system("pause");
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement