//=========================================================================== // Exam: A student's initials and one exam score. // A. Fischer, October 1, 2000 file: exam.hpp //=========================================================================== #pragma once #include #include using namespace std; //--------------------------------------------------------------------------- class Exam // One name-score pair { private: //--------------------------------------------------------------- char initials [4]; // Array of char for student name int score; // Integer to hold score public: //---------------------------------------------------------------- typedef int KeyType; // define type of sort key KeyType key() const { return score; } Exam (const char* init = "DMY", int sc = 0){ strncpy( initials, init, 3 ); initials[3] = '\0'; score = sc; } ~Exam (){ cout << " Deleting Score " <