Question: C++ Program Program Requirements: Create a class (to be named IntegerList) , to hold integers. Use dynamic memory allocation (smart pointers) for handling any number

C++ Program

Program Requirements:

Create a class (to be named IntegerList), to hold integers. Use dynamic memory allocation (smart pointers) for handling any number of integers at run-time (read the integers until a number greater than 3500 is entered).

The member data elements should be private with public member functions to handle the following operations:

Constructor:

with a pointer to an integer as parameter to initialize the class to contain a copy of the integer

Public Member functions:

Add function (AddtoList) to allow the adding an integer at the end of the list

Print function (PrintNum) to display the integers in the List on the standard output

Count function (CountNum) to return the number of integers stored in the list

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!