/* Lecture code 2.0
 *
 * The perils of an improperly-formed #define constant.  Make
 * sure that you understand why this code doesn't work correctly
 * and why you should use the const keyword to make constants
 * instead of using #define!
 */
#include <iostream>
using namespace std;

#define MOWING_LAWNS 12    // Total hours spent mowing lawns
#define BEING_A_NINJA 5    // Total hours spent being a ninja.
#define HOURLY_WAGE 14     // Wage per hour

/* Watch out!  These lines causes problems! */
#define TOTAL_HOURS MOWING_LAWNS + BEING_A_NINJA
#define TOTAL_WAGES TOTAL_HOURS * HOURLY_WAGE

int main()
{
	/* This doesn't compute the right answer!  Make sure that
	 * you understand why!
	 */
	cout << '$' << TOTAL_WAGES << endl;
	return 0;
}