Here is some of the code for the class just in case it is of any help:
Code:
class message {
public:
message (string, string);
~message();
void set_time(); //timestamp
void append(); // msg body txt
void print(); // print results
string timestamp; // timestamp holder
string to;
string from;
string msg;
string subject;
string msg_string; // holds all values together
/* for the purpose of the exercise we have to put all of the strings in one long string for storage */
private:
};
message::message (string to, string from) {
system("cls");
cout << "Create a new email message\n";
cout << "--------------------------\n";
cout << "To:";
cin >> to;
cout << endl;
cout << "From:";
cin >> from;
cout << endl;
}
message::~message() {
}
thanks again