grade book.docx - GRADEBOOK.h #include <string> / class...

This preview shows page 1 - 3 out of 5 pages.

The preview shows page 1 - 3 out of 5 pages.
GRADEBOOK.h#include <string> // class GradeBook usesC++ standard string classusingstd::string;// GradeBook class definitionclassGradeBook{public:GradeBook(string, string);//constructor that initializes courseName andcourseInstructorNamevoidsetCourseName(string);//function that sets the course namestring getCourseName();// function thatgets the course namevoiddisplayMessage();// function thatdisplays a welcome messagevoidsetCourseInstructorName(string);// b) function that sets the courseinstructor namestring getCourseInstructorName();// b)function that get the course instructornameprivate:string courseName;// course name forthis GradeBookstring courseInstructorName;// a)course instructor name for this GradeBook};// end class GradeBook
GRADEBOOK.CPP#include <iostream>usingstd::cout;usingstd::endl;#include "GradeBook.h" // includedefinition of class GradeBook// constructor initializes courseName withstring supplied as argumentGradeBook::GradeBook(string name, stringinsName){setCourseName(name);// call set

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
Subroutine

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture