Question: c++ 1. Write 1 line of code that will dynamically point printBank to an array of 4 Printer elements. 2. Create a one of code
c++

1. Write 1 line of code that will dynamically point printBank to an array of 4 Printer elements.
2. Create a one of code to set the brand attribute of the 2nd element of printBank to "Canon". You MUST use the arrow operator in your answer.
3. Create code to dynamically point vectPaper to 1 instance.
4. Create 1 line of code to reclaim the memory allocated to printBank above.
5. Properly add laser to vectPaper.
Given this Printer class class Printer { public: string brand; int price; }; //And the following declarations Printer laser, *printBank: vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
