[Tutor] roman to arabic

Alan Gauld alan.gauld at btinternet.com
Mon Feb 27 17:37:19 CET 2012


On 27/02/12 16:28, Albert-Jan Roskam wrote:

> possible way. Am I wrong or is it really not trivial at all to write an
> error class for such lengthy roman numerals?

Its non trivial, you need something like a state machine to detect valid 
transitions as you read each character.

Alan G.



More information about the Tutor mailing list