Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "Roman_int.h"
- using namespace std;
- //------------------------------------------------------------------------------
- int main()
- try
- {
- Roman_int r;
- do {
- cout << "Enter a roman number: ";
- cin >> r;
- if (r.as_int() != NO_VALUE)
- cout << r.as_int() << "\n\n";
- } while (true);
- return 0;
- }
- catch (exception& e) {
- cerr << e.what() << '\n';
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement