Quote Originally Posted by DrkMatter
This sounds like a missing-semi-colon-at-end-of-class-declaration problem.
Im not sure if it means anything but class's compile fine on their own.

Quote Originally Posted by SlyMaelstrom
Try including Course.h after Student.h. That might do something, otherwise, I'd like to see what's in those libraries.
That actually works. But now when I do..

Code:
#include <iostream>
#include <string.h>
#include "Student.h"
#include "Course.h"

using namespace std;

int main(void);
Student *sa[3];
Student *ca[3];

int main(){
    
    sa[0] = new Student("James");
    sa[1] = new Student("Jason");
    
    ca[0] = new Course("Math");
    
    sa[0]->enrollInCourse(2);
This line
Code:
ca[0] = new Course("Math");
Says - Main.cpp:17: error: `Course' has not been declared
Although this may be me not using pointer propely or my constructor is wrong..

In Course.h
Code:
inline Course::Course(string cn) {
    CourseName = cn;
    NextCourseNo++;
    CourseNo = NextCourseNo; 
}