#ifndef ROMAN_NUMERALH #define ROMAN_NUMERALH #include //for ostream_iterator #include //for fill_n using namespace std; class roman_numeral { int i; public: roman_numeral(int initial_i): i(initial_i) {} friend ostream& operator<<(ostream& ost, const roman_numeral& n) { fill_n(ostream_iterator(ost), n.i, 'I'); //simplified return ost; } }; #endif