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++

c++ 1. Write 1 line of code that will dynamically point printBank

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!