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