//-------------------------------------------------------------------- // // Laboratory 9, In-lab Exercise 1 test9one.C // // Test program for the packet processor application, which uses // OrderedList. // //-------------------------------------------------------------------- #include #include #include "listord.C" //-------------------------------------------------------------------- const int PACKET_SIZE = 6; class Packet { public: void setKey ( int new_position ) { position = new_position; } int key () { return position; } void setBody( char* new_text ) { strcpy(body, new_text); } char* getBody() { return body; } private: int position; // the position of the packet in the message char body[PACKET_SIZE]; // the characters in the packet }; //-------------------------------------------------------------------- void main() { // FILL IN THE BLANK! }