I am pretty new to C++ and I am trying to write a program on my school's unix system that will change an integer value into Roman Numerals. I am fairly sure that my algorithm is ok. I use the cin command to get an integer, then using a do/while loop to take the integer and if it is 1000+ it will subtract 1000 from the beginning integer, and add an "M" to the string (I'm not sure if string is even a valid operand in C++, but i don't think a char is enough to show more than one letter). This continues until the nunber is no longer >=1000. Then to the 500's, 100's and so on, so that the number will be shown in Roman numeral form. I am not asking for anybody to write a program for me, just point me in the right direction. Any help would be greatly appreciated. Thank you in advance for your time and help.
Joe
Joe