X-1.1 Camiel Vanderhoeven 28-MAR-2008 File created.
Definition in file NumberQuestion.h.
Go to the source code of this file.
Data Structures | |
| class | NumberQuestion |
| Question class that accepts a numeric answer within a defined range. More... | |
Functions | |
| string | i2s (int x) |
| Convert an integer to a string. | |
| int | s2i (const string x) |
| Convert a string to an integer. | |
| string i2s | ( | int | x | ) | [inline] |
Convert an integer to a string.
Definition at line 39 of file NumberQuestion.h.
Referenced by NumberQuestion::ask(), and main().
| int s2i | ( | const string | x | ) | [inline] |
Convert a string to an integer.
Throws a CLogicException when the input is not numeric.
Definition at line 51 of file NumberQuestion.h.
References FAILURE.
Referenced by NumberQuestion::ask(), and NumberQuestion::getNum().