C++ Roman Numeral Converter
I am trying to finish up my intro C++ course, and have to make a Roman numeral to Arabic converter. I had no trouble with the reverse (Arabic to Roman), but I must be missing something on this one. I tried a few variations, and either got 0 or an insanely high number as the output.
Code:
#include<iostream> |
Here's a hint... initialize the variable 'arabic'.
Another... fix the for-loop's initial state and conditional statement. Also, "IV" is 4, not 6 as your program will compute. It would seem that you have more work ahead. |
Quote:
|
Quote:
We've all heard the argument against "reinventing the wheel", however that notion surely does not apply to students. |
All times are GMT -5. The time now is 05:44 AM. |