Advertisement
jbonanno

TestRoman.cpp

Jun 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include "roman.h"
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.      romanType roman;
  10.  
  11.      string romanString;
  12.      
  13.      cout<<"Enter a roman number: ";
  14.      cin>>romanString;
  15.      cout<<endl;
  16.  
  17.      roman.setRoman(romanString);
  18.  
  19.      cout<<"The equivalent of the Roman numeral "
  20.         <<romanString<<" is ";
  21.      roman.printDecimal();
  22.      cout<<endl;
  23.  
  24.      return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement