Commit c89b0082 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Fixed up examples - thanks Michael Lwe!

parent 0c2e5ecc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ using namespace std;

/**
 * Recursively count the number of different ways of exchanging
 * [dollars] dollars for the following bills: $1, $5, $20, $100.
 * [dollars] dollars for the following bills: $1, $2, $5, $20, $100.
 *
 * Two approaches are different if and only if they differ in the
 * number of at least one denomination of bills.  So $8 = $1+$2+$5
@@ -66,7 +66,7 @@ int labFour_pTwo_exchange(int dollars);
 *    4  |  9 = 6+3
 *
 * @example 3
 * labFour_pThree_genFib({0.25 ,0.25 ,0.25, 0.25},n) produces:
 * labFour_pThree_genFib({0.25 ,0.25 ,5, 0.5},n) produces:
 *    n  |  labFour_pThree_genFib({0.25 ,0.25 ,0.5, 0.5},n)
 *    -4 |  1  // hard-coded
 *    -3 |  1  // hard-coded
+2 −4
Original line number Diff line number Diff line
@@ -29,9 +29,7 @@ using namespace std;
 * Gabi.setSalary(100000); // $100,000 per year
 */
class labFour_pZero_Person;

class labFour_pZero_Student;

class labFour_pZero_Instructor;

/**
@@ -62,8 +60,8 @@ class labFour_pZero_Instructor;
 *
 *  vector<labFour_pOne_GeometricThing> things = {q1, re1, s1, rh1};
 *
 *  labFour_pOne_GeometricThing::sumAreas(things); // returns 2+9+sqrt(2)/2+pi = 14.8487...
 *  labFour_pOne_GeometricThing::sumPerimeters(things); // returns 6+12+4+2*pi = 28.2832...
 *  labFour_pOne_GeometricThing::sumAreas(things);      // returns 1+2+9+sqrt(2)/2+pi = 15.8487...
 *  labFour_pOne_GeometricThing::sumPerimeters(things); // returns 4+6+12+4+2*pi = 32.2832...
 *
 */
class labFour_pOne_GeometricThing {