Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::endl;
- class Test
- {
- public:
- Test() { cout << "Constructor" << endl; }
- ~Test() { cout << "Destructor" << endl; }
- };
- int main()
- {
- for (int i = 0; i < 10; i++)
- {
- Test t;
- }
- }
Add Comment
Please, Sign In to add comment