#ifndef _STOCKRECORDARRAY_H_ #define _STOCKRECORDARRAY_H_ #include "mystring.h" class StockRecord { public: StockRecord(string mon, int lo, int closing_value, int hi) : month(mon), low(lo), close(closing_value), high(hi) {} string month; int low; int close; int high; }; class StockRecordArray { public: // operations supported by StockRecordArray StockRecordArray( int size = 12 ); ~StockRecordArray(); // return the value at location index StockRecord *get_value(int index); // set the value at location index void set_value(int index, StockRecord *value); protected: void checkBounds(int index); protected: StockRecord **data; int size; }; #endif