/********************************************************************************************
example 3 -- roman.h
class roman
********************************************************************************************/
#include <iostream>
#include <string>
using namespace std;
class roman {
private:
int number;
public:
//constructors
roman(const int& i = 1) {
number = i;
}
//manipulator
void set(const int& i = 1) {
number = i;
}
//display tool
string asString() const;
//increment operators
string operator++() { //pre-fix increment
number++;
return asString();
}
string operator++(int) { //post-fix increment
string temp = asString();
number++;
return temp;
}
};