mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-07 16:15:23 +13:00
big update after strip
hg-commit-id: dcfb20faef4d
This commit is contained in:
parent
443ff15688
commit
6fd6c7af46
17 changed files with 428 additions and 91 deletions
29
music/pokeredwavptnvis/Console.h
Normal file
29
music/pokeredwavptnvis/Console.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef CONSOLE_H
|
||||
#define CONSOLE_H
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
// Just a Console Utility Library
|
||||
class Console
|
||||
{
|
||||
public:
|
||||
// Basic
|
||||
static void Get(char* value);
|
||||
static void Get(std::string& value);
|
||||
static void Print(const char* value);
|
||||
static void Error(const char* value);
|
||||
|
||||
// Upper-Basic
|
||||
static void PrintLn(const char* value);
|
||||
static void ErrorLn(const char* value);
|
||||
|
||||
// Higher
|
||||
static void Ask(const char* question, char* answer);
|
||||
static void Ask(const char* question, std::string& answer);
|
||||
|
||||
// Better Error Handling
|
||||
static int atoi_ex(const char* input, bool supress = false);
|
||||
};
|
||||
|
||||
#endif // CONSOLE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue