Question: please fix this code #include #include using std::cout; using std::cin; using std::string; struct Student { //In case you forget about struct, struct is very similar

 please fix this code #include #include using std::cout; using std::cin; using

std::string; struct Student { //In case you forget about struct, struct is

please fix this code

#include #include using std::cout; using std::cin; using std::string; struct Student { //In case you forget about struct, struct is very similar to class. The access specifier of its members is, by default, public. string name; int age; Student() {//default constructor name = ""; age = ; Student(string name, int age) { this->name = name; this->age = age; class StudentClub { private: string clubName; Student students; int numberOfStudents; public: Studentclub(string cName, int numofStudents); clubName = name; numberOfStudents = num; students = new Student[numberOfStudents); //Parameterized constructor. 3 points. numOfStudents indicates the number of students in the club; cName is the club name. StudentClub(); // Destructor. 1 points. You will need to de-allocate any dynamic member variables here, using delete operator. delete[] students; void setStudents(); { for (int i = 0; i > students[i].name; cout > students[i].age; 1/3 points. Ask the user to enter the name and age for each student. You may use cin, cout. 1/1 extra credit point for implementing function chaining void displayStudents(); cout

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!