Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <string>
- #include <vector>
- #include <random>
- using namespace std;
- struct Widget
- {
- Widget()
- {
- cout << "constructor" << endl;
- }
- ~Widget()
- {
- cout << "destructor" << endl;
- }
- };
- int main()
- {
- Widget * w = new Widget;
- delete w;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement