Mari's Tarot
 All Classes Files Functions Variables Enumerations Enumerator Friends
Functions
getChar.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char getChar (const std::string &message)
 Get a character from the standard input and keep asking until it does not received a character. More...
 

Function Documentation

char getChar ( const std::string &  message)

Get a character from the standard input and keep asking until it does not received a character.

Parameters
messageA string (char* in fact) with the error message to print if something goes wrong.
Returns
A character read from the standard input.