#ifndef GRADE_H #define GRADE_H #include //for class ostream #include //for class string using namespace std; class grade { int i; //in range 0 to n-1 inclusive; 0 means F, 13 means A static const int n {14}; //the number of possible grades static const string a[n]; //names of the grades: "F", "F+", ..., "A+" public: grade(const string& s); grade& operator+=(int inc); friend ostream& operator<<(ostream& ost, const grade& g); }; #endif