mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-08 00:25:28 +13:00
made changes in repo
hg-commit-id: 1145e088ee27
This commit is contained in:
parent
21caa525cc
commit
4d0797bc3a
30 changed files with 1748 additions and 0 deletions
29
music/pokeredmusicdisasm/Console.h
Normal file
29
music/pokeredmusicdisasm/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