Question: Problem 2: Create an array of classes called Student that holds data for a student. The class should hold the following data: . Name of

 Problem 2: Create an array of classes called "Student" that holds

Problem 2: Create an array of classes called "Student" that holds data for a student. The class should hold the following data: . Name of each student Age of each student . Address of each student The class should have the following functions setdata (sets the all the data for the class) displaydata (prints out all the data for the class) Write a complete c++ program that creates an array of instances of the class "Student". The program should ask the user to enter how many students to create, then ask and store the information for each student in the array of classes. Then the program should printout the data for each student. Use the new" operator to dynamically allocate memory for the array of classes and don't forget to free up the memory

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!