Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "roman.h"
- using namespace std;
- int main()
- {
- romanType roman;
- string romanString;
- cout<<"Enter a roman number: ";
- cin>>romanString;
- cout<<endl;
- roman.setRoman(romanString);
- cout<<"The equivalent of the Roman numeral "
- <<romanString<<" is ";
- roman.printDecimal();
- cout<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement