[求助]求可以进行罗马数字加减乘除的程序
arabic(0) = 1000
arabic(1) = 900
arabic(2) = 500
arabic(3) = 400
arabic(4) = 100
arabic(5) = 90
arabic(6) = 50
arabic(7) = 40
arabic(8) = 10
arabic(9) = 9
arabic(10) = 5
arabic(11) = 4
arabic(12) = 1
roman(0) = "M"
roman(1) = "CM"
roman(2) = "D"
roman(3) = "CD"
roman(4) = "C"
roman(5) = "XC"
roman(6) = "L"
roman(7) = "XL"
roman(8) = "X"
roman(9) = "IX"
roman(10) = "V"
roman(11) = "IV"
roman(12) = "I"
以上是十进制和罗马数字之间的对应关系,求可以直接进行罗马数字加减乘除的程序。最好不通过转换到十进制直接能进行,
反正就是求最简的方法。
现在只能用现转换10进制再进行计算的方法,想用其他方法想了很久想不到,上来求助各位高手.拜托!!
[此贴子已经被作者于2007-5-24 10:34:08编辑过]