// test currency class #include #include "curr3.h" void main(void) { Currency g, h(plus, 3, 50), i, j; g.Set(minus, 2, 25); i.Set(-6.45); j = h + g; // demonstrate + (overload, objects of type Currency) cout << j << endl; // demonstrate << i += h; // demonstrate += cout << i << endl; j = i + g + h; // consecutive addition cout << j << endl; j = (i+=g) + h; // cout << j << endl; cout << i << endl; cout << "enter a char to exit" << endl; getchar(); // to allow time to see result }