GcdExercise Class Reference
Inheritance diagram for GcdExercise:
List of all members.
Public Member Functions
| ||GcdExercise (string name)|
Protected Member Functions
|void ||execute ()|
|void ||getInput ()|
Static Private Member Functions
|static int ||gcd (int a, int b)|
© Bernhard Wagner, xmlizer.net, 2002.
Definition at line 12 of file GcdExercise.cpp.
Constructor & Destructor Documentation
|name ||The name of the exercise |
Definition at line 20 of file GcdExercise.cpp.
Member Function Documentation
Gets the input for this exercise. To be overridden in subclasses. (Hook Method)
Reimplemented from AbstractExercise.
Definition at line 62 of file GcdExercise.cpp.
References fA, and fB.
Calculates the gcd of two integers.
|a ||The first number |
|a ||The second number |
- The GCD
Definition at line 73 of file GcdExercise.cpp.
Referenced by execute().
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Jul 3 19:12:45 2008 for Exercise Framework by