/////// File: RateTable.h /////// #include "Rate.h" class RateTable { public: RateTable() {} // default constructor static double rate(char *cur); // finds rate for given currency static new_rate(char *cur, double r); static void display(char *cur); // display one entry static void display(); // display rate table private: static int lookup(char *cur); // table lookup static Rate table[]; static unsigned len; }; #define RATES Rate("Britan (Pound)", 0.5905), \ Rate("Canada (Dollar)", 1.1802), \ Rate("Germany (Mark)", 1.6760), \ Rate("Italy (Lira)", 1233.50), \ Rate("Japan (Yen)", 151.17), \ Rate("Mexico (Peso)", 2827.01), \ Rate("Spain (Peseta)", 104.15), \ /* . . . */ \ Rate("Taiwan (NT $)", 24.0)