Computer Science Canada if statements in for loops |
Author: | signal_1001 [ Fri Apr 30, 2004 8:15 am ] | ||
Post subject: | if statements in for loops | ||
Im working on a program that converts roman numerals to arabic numbers. I cannot figure out how to say the roman numeral is invalid if they are not in the right order. this is some of my code
any ideas? |
Author: | Tony [ Fri Apr 30, 2004 10:19 am ] |
Post subject: | |
can't you just search for invalid substrings? ivi for example... |
Author: | signal_1001 [ Fri Apr 30, 2004 4:48 pm ] |
Post subject: | |
I was thinking about it... but i was just wondering if there was any faster way. |
Author: | Tony [ Fri Apr 30, 2004 5:48 pm ] |
Post subject: | |
substrings are the faster way |
Author: | wtd [ Fri Apr 30, 2004 8:19 pm ] | ||
Post subject: | |||
|
Author: | signal_1001 [ Sat May 01, 2004 12:03 pm ] |
Post subject: | |
wow ...... so it seems..... thanks for the help though ...... any idea what im suppose to add or change when this warning appears... fatal error C1010: unexpected end of file while looking for precompiled header directive |