Question
The second part of this workshop upgrades your solution to use smart pointers. Your tasks for this part of the workshop are: Add an operator
The second part of this workshop upgrades your solution to use smart pointers.
Your tasks for this part of the workshop are:
- Add an operator += overload to the GeneratingList module using smart pointer syntax
- Complete the WriteSmart() function in the WritingRecord module using smart pointer syntax
These two functions should do the same thing as the raw pointer version, but using unique smart pointers instead.
w8 Module (supplied)
The tester module has been supplied. Do not modify the existing code!
When doing the workshop, you are encouraged to write own tests, focusing on a single implemented feature at the time, until you get all functionality in place.
Sample Output
When the program is started with the command (the input files are provided):
ws NamesSIN.dat CorrectSalary.dat WrongSalary.dat
the output should look like the one from the sample_output.txt file.
Reflection
Study your final solution, reread the related parts of the course notes, and make sure that you have understood the concepts covered by this workshop.
Create text file named reflect.txt that contains your detailed description of the topics that you have learned in completing this particular workshop and mention any issues that caused you difficulty and how you solved them. Include in your explanationbut do not limit it tothe following points:
- the advantage that smart pointer syntax provides. Use example from your code to support your explanation.
- the difference between raw and smart pointer syntax in your solution.
To avoid deductions, refer to code in your solution as examples to support your explanations.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started