archer2-cpp

Smart pointers exercise

In your clone of this repository, find the 6.2-smart-pointers exercise. It contains two sub-directories part1 and part2. For each part, you can compile by running make in the relevant sub-directory.

Part 1

List the files in part1:

$ cd archer2-cpp/exercises/6.2-smart-pointers/part1
$ ls
Makefile  unique.cpp

Follow the instructions in unique.cpp to test your understanding of unique pointers.

Part 2

List the files in part1:

$ cd archer2-cpp/exercises/6.2-smart-pointers/part2
$ ls
Makefile  shared.cpp

Follow the instructions in shared.cpp to test your understanding of shared pointers.