- Accept 05_01_change
- Get main.cpp
- Get change.h
- Declare following functions in
includes/change/change.h
- Implement following functions in
includes/change/change.cpp
For example, call change(num_of_quarters, cents, QUARTER);
. We will get the maximum number of quarters we can get from total cents, and cents will deducted the cents of these quarters for next calculation. QUARTER
is a const number, which equals to 25.