//=========================================================================== // Item: A student's initials and one exam score. // A. Fischer, October 1, 2000 file: item.hpp // Modified M. & A. Fischer, September 17, 2009 //=========================================================================== #pragma once #include #include using namespace std; //--------------------------------------------------------------------------- // Data class to model a student exam score // Alice's design pattern: // oil and water don't mix -- keep data and data structure separate // Constructor and destructor contain tracing printouts for debugging class Item // One name-score pair { private: // Variable names are private char initials [4]; // Array of char for student name int score; // Integer to hold score public: inline Item (char* inits, int sc); ~Item (){ cerr <<" Deleting Item " <