#include //for the object cout #include //for the macro EXIT_SUCCESS; #include "grade.h" //for class grade using namespace std; //You can make this program more robust by having it catch the exceptions that //might be thrown by the constructor and operator+= of class date. int main() { grade mygrade {"B-"}; mygrade += 4; //behaves as if you'd said mygrade.operator+=(4); cout << mygrade << "\n"; //The above statement behaves as if you'd said //operator<<(operator<<(cout, mygrade), "\n"); return EXIT_SUCCESS; }