/* Filename: try1.cpp Author: Br. David Carlson Date: July 5, 1998 Last Revised: November 26, 2001 This test program creates a few objects of type Product and prints their contents on the screen. Tested with: Microsoft Visual C++ 6.0 Microsoft Visual C++ .NET g++ under Linux */ #include "product1.h" int main(void) { Product ProductA("toaster, 4 slice", 1997, 91.98); Product ProductB; // use default values Product ProductC("mixer, 5 speed", 1998, 32.95); cout << "ProductA:" << endl; ProductA.Print(); cout << "ProductB:" << endl; ProductB.Print(); cout << "ProductC:" << endl; ProductC.Print(); return 0; }