mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-10-21 06:17:58 +13:00
45 lines
715 B
C++
45 lines
715 B
C++
#include "Console.h"
|
|
|
|
using namespace std;
|
|
|
|
// Basic
|
|
void Console::Get(char* value)
|
|
{
|
|
cin >> value;
|
|
}
|
|
void Console::Get(string& value)
|
|
{
|
|
cin >> value;
|
|
}
|
|
void Console::Print(const char* value)
|
|
{
|
|
cout << value;
|
|
}
|
|
void Console::Error(const char* value)
|
|
{
|
|
cerr << value;
|
|
}
|
|
|
|
// Upper-Basic
|
|
void Console::PrintLn(const char* value)
|
|
{
|
|
Print(value);
|
|
cout << endl;
|
|
}
|
|
void Console::ErrorLn(const char* value)
|
|
{
|
|
Error(value);
|
|
cerr << endl;
|
|
}
|
|
|
|
// Higher
|
|
/*void Console::Ask(const char* question, char* answer)
|
|
{
|
|
Print(question);
|
|
Get(answer);
|
|
}
|
|
void Console::Ask(const char* question, string& answer)
|
|
{
|
|
Print(question);
|
|
Get(answer);
|
|
}*/ |