Advertisement
jbonanno

TestRoman.cpp

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