EchoString.cpp
449 Bytes
#include "EchoString.h"
void EchoString::PrintScreen()
{
std::cout << "Echo Program : ";
std::cout << getEcho() << std::endl;
}
void EchoString::InputString()
{
while (getEcho().empty())
{
std::cout << "Input your string : ";
std::getline(std::cin, mEcho);
if (std::cin.fail())
{
std::cin.clear();
std::cin.ignore('\n', 2048);
system("cls");
continue;
}
}
}
EchoString::EchoString()
{
}
EchoString::~EchoString()
{
}