Roman Numerals

can anyone help me code a program that would change all the integers entered by the user into Roman Numeral.
[109 byte] By [rockx] at [2007-11-19 6:41:00]
# 1 Re: Roman Numerals
Convert Numbers to Various Display Formats ( http://www.dev-archive.com/Cpp/Cpp/algorithms/general/article.php/c9139/)
Ejaz at 2007-11-9 0:41:43 >
# 2 Re: Roman Numerals
is there any other way to do it without using classes.. i mean using the features available in the C++ platform??
rockx at 2007-11-9 0:42:49 >
# 3 Re: Roman Numerals
Classes are part of C++, aren't they? :) The author (Ajay Vijay) has provided the source with the article as well, you can trim it according to your need and get out of it what you want.
Ejaz at 2007-11-9 0:43:48 >
# 4 Re: Roman Numerals
i know that but the thing is that i wanted a simple code with mayb n if.......else statements... the code i m requesting will help me in some way. if i had to use classes i would have done it somehow or the other
rockx at 2007-11-9 0:44:54 >
# 5 Re: Roman Numerals
I don't see what the problem is, Ejaz gave you exactly what you asked for.
The ConvertToRoman function is almost entirely C style code, it only uses CString to reverse the string and return the result.
bmoodie at 2007-11-9 0:45:47 >
# 6 Re: Roman Numerals
i know that but the thing is that i wanted a simple code with mayb n if.......else statements... the code i m requesting will help me in some way. if i had to use classes i would have done it somehow or the other
Just take the function from the class and put it in your code. If you don't want MFC replace CString with STL's string.
cilu at 2007-11-9 0:46:57 >