/******************************************************************************************** example 4 -- driver.cpp test program for class roman ********************************************************************************************/ #include "roman.h" #include <iostream> using namespace std; void main() { cout << "This program will test the ability of the roman class to" << endl << "work like an integer." << endl << "Printable (valid) roman numerals run from 1 to 3888." << endl << "\"underflow\" is printed for integers less than 1" << endl << "\"overrun\" is printed for integers greater than 3888" << endl; roman test; cout << "First Pass" << endl << " post-fix: test++" << endl << " before: " << test << endl; cout << " during: " << test++ << endl; cout << " after: " << test << endl << endl; cout << "Second Pass" << endl << " pre-fix: ++test" << endl << " before: " << test << endl; cout << " during: " << ++test << endl; cout << " after: " << test << endl << endl; }