Inheritance diagram for GcdExercise:
Public Methods | |
GcdExercise (string name) | |
Protected Methods | |
void | execute () |
void | getInput () |
Static Private Methods | |
int | gcd (int a, int b) |
Private Attributes | |
int | fA |
int | fB |
© Bernhard Wagner, xmlizer.biz, 2002.
Definition at line 12 of file GcdExercise.cpp.
|
Constructor.
Definition at line 20 of file GcdExercise.cpp. |
|
Executes this exercise. To be overridden in subclasses. (Hook Method) Reimplemented from AbstractExercise. Definition at line 69 of file GcdExercise.cpp. |
|
Calculates the gcd of two integers.
Definition at line 73 of file GcdExercise.cpp. Referenced by execute(). |
|
Gets the input for this exercise. To be overridden in subclasses. (Hook Method) Reimplemented from AbstractExercise. Definition at line 62 of file GcdExercise.cpp. |
|
Definition at line 47 of file GcdExercise.cpp. Referenced by execute(), and getInput(). |
|
Definition at line 48 of file GcdExercise.cpp. Referenced by execute(), and getInput(). |