Guest User

Untitled

a guest
Dec 14th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using std::cout;
  4. using std::endl;
  5.  
  6. class Test
  7. {
  8. public:
  9. Test() { cout << "Constructor" << endl; }
  10. ~Test() { cout << "Destructor" << endl; }
  11. };
  12.  
  13. int main()
  14. {
  15. for (int i = 0; i < 10; i++)
  16. {
  17. Test t;
  18. }
  19. }
Add Comment
Please, Sign In to add comment