I have a snippet of code and am trying to make sure I am doing this right. Here is what I have so far and what needs to be done. Any help would be great
#include <iostream>
using namespace std;
const int NUM_TEACHERS = 3;
class Teacher
{
public:
Teacher();
private:
char name[40];
int teacherID;
char class[20];
};
int main()
{
//1.) write a constructor that will create three teachers
teacher teacher[NUM_TEACHERS] = {
Student("Andy", 98765, "Science"),
Student("Jane", 12345, "Science"),
Student("Sally", 13579, "Science")};
teacher*teacherPtr = &teacher;