Thread: Need help
View Single Post
 
Reply
Posted 2003-11-19, 10:35 AM in reply to Hades-Knight's post "Need help"
I don't think it works. If input is IV, it adds 1 to total (which you didn't set to zero initially which will give an error) then sets now to 1. Upon the second loop, 5 is greater than 1 so total becomes -4.

Also, your for loop
Quote:
for (i = strlen(romanNumeral) - 1); i >= 0; i--)
Is missing a "(" before strlen.

I'll see what I can do with it. Give me a bit.
D3V said:
This message is hidden because D3V is on your ignore list.
What is it they say about silence being golden?
Old
Profile PM WWW Search
Medieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzMedieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Medieval Bob