Q4sp01 - destination address. This function is to set the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EGN 3210 Quiz 4 Spring 2001 NAME_____________________________ SS#_____________________________ Create a class called message. It is to have as private a string that holds a message, an integer that holds a destination location number, another integer that holds the source location number and a flag that indicates that the message has been displayed. It is to have as public a function that displays the contents of the message, its source and
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: destination address. This function is to set the flag to indicate the message has been displayed. The constructor is to initialize the message and its source and destination location numbers and set the flag to indicate the message has not yet been displayed. The destructor checks the flag. If the flag indicates that the message has not yet been displayed it will display a warning to this effect....
View Full Document

Ask a homework question - tutors are online