检查字符串是罗马数字 [英] Check string is Roman number

查看:188
本文介绍了检查字符串是罗马数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何检查特定字符串是否为罗马数字????

解决方案

如果您要表示罗马数字,如VII中的7,MCM为1900.等等,那么就没有标准的方法-您必须自己处理它们.

这里有一个解决方案: http://vadivel.blogspot. co.uk/2011/09/how-to-convert-roman-numerals-to.html [ 解决方案

If you mean Roman numbers as in VII for 7, MCM for 1900 and so forth, then there is no standard way - you will have to process them yourself.

There is a solution here:
http://vadivel.blogspot.co.uk/2011/09/how-to-convert-roman-numerals-to.html[^] but I haven''t tested it and I have no idea how well it works.


这篇关于检查字符串是罗马数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆