Roman Numeral calculator Functions help in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nuken
    New Member
    • Oct 2010
    • 16

    Roman Numeral calculator Functions help in c++

    I need someone to look over these because I'm not sure how to make it write the correct output. I know its kind of a lot of code to look at but any help would be much apprecitated. I think the problem is between lines 129-131.
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    It would help a lot if you told us what is going wrong: compiler error, linker error, runtime error, incorrect result (but in that case, tell us what you expect and what you got).

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      I suggest you first acquire the entire input string and only then convert each characterin the string. As opposed to your current strategy of acquiring one character at a time from stdin and converting it before you get the next one.

      Comment

      • nuken
        New Member
        • Oct 2010
        • 16

        #4
        this is what i came up with but doesn't see to work.

        Comment

        Working...