How to implement a c++ program using arrays for the following scenario?
The program is about student details wherein the program should display the name, identity no, phone in the base class(student). It inherits two derived classes(undergraduate and postgraduate). The undergraduate class takes courses[] as an attribute and postgraduate class takes ResearchTitle as an attribute.
I'm done with the base class and PostGraduate class implementation. I would like to know how to represent the list of courses that corresponds to a particular student using arrays in the undergraduate class(derived) implementation.
student.h
#ifndef STUDENT_H_INCLUDED
#define STUDENT_H_INCLUDED
#include<iostream>
using namespace std;
class student
{
public:
void printProfile();
protected:
string name;
string IC;
long int phone;
};
#endif // STUDENT_H_INCLUDED