#ifndef COURSE_H #define COURSE_H #ifndef PROF_H #include "prof.h" #endif #ifndef CSTRING_H #define CSTRING_H // Even if you don't know the guard for a header you can put // your own guard in place. #include #endif #ifndef DARRAY_H #include "darray.h" #endif #ifndef RCPOINTE_H #include "rcpointe.h" #endif class Course { public: Course(); Course(string,ProfPtr); void tabString(char *); void number(char *); void prof(char *); ProfPtr getProf()const; int operator == (const Course &)const; int sameProf(const Course&)const; private: string _number; ProfPtr _prof; // will be initalized with a reference to a prof // updates are automatic except for deletes. }; class CourseList :public Array { public: CourseList(){} CourseList(const Array &c):Array(c){} int findNextCourseWithProf(const Course&,int)const; }; typedef RcPointer CourseListPtr; #endif