You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
339 B
C++
29 lines
339 B
C++
#ifndef MESSAGE
|
|
#define MESSAGE
|
|
#include "Message.h"
|
|
#include <iostream>
|
|
|
|
void Message::printMessage()
|
|
{
|
|
std::cout<<message<< "\n";
|
|
};
|
|
|
|
void Message::setMessage(std::string content)
|
|
{
|
|
message = content;
|
|
}
|
|
|
|
std::string Message::getMessage()
|
|
{
|
|
return message;
|
|
}
|
|
|
|
Message::Message(std::string msg):
|
|
message(msg)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif |