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

Go to the source code of this file.

Functions

int getInt (const std::string &message)
 Get an integer from the standard input and keep asking until it does not received an integer. More...
 

Function Documentation

int getInt ( const std::string &  message)

Get an integer from the standard input and keep asking until it does not received an integer.

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