Create own class. Write a destructor shows a text in the console.
In main method create a new object of the class (use "new" keyword").
Do you see destructor's output?
Change main method, program will start deallocating memory without "delete" keyword.
unique_ptr<A> smart_a(new A(20)); // We use new, but we're wrapping poitner in unique_ptr
cout << smart_a->i << endl; // we can use smart_a like a poitner
Create a structure of linked list. Create a list with 4 elements. Use smart poitners to manage memory.
Implement class diagram: