Skip to main content
6 events
when toggle format what by license comment
Mar 20, 2014 at 15:05 comment added ChrisW @Dexobox 200_success's answer uses the standard strtod function. Choosing and using the right standard function is very probably the right/correct/best way to do it. In contrast I posted another topic on how to parse it yourself; IMO it shows that doing it yourself (instead of reusing a standard function) not trivial, and takes a while to get it right. (It would have been simpler if had been integers instead of double-precision numbers: double-precision numbers have a more complicated syntax, because of the . and E characters).
Mar 20, 2014 at 5:15 comment added Dexobox Thankyou for taking the bait :P This is gonna help me soooooooooooo much. As for the input validation it looks PERFECT! based on just executing the code by passing the arguments you supplied in your comments above. The code is huge might take a while before i can digest it whole (because i am a noob) :). I appreciate you helping me out, you are AWESOME!I cannot reply on the code link you provided because apparently i dont have 50 reputation on CR.
Mar 20, 2014 at 5:00 comment added 200_success Asking for code to be written is normally off-topic on Code Review, but I've taken the bait.
Mar 20, 2014 at 4:27 vote accept Dexobox
Mar 20, 2014 at 3:27 comment added Dexobox I would actually like to see you do this code, you sound like a pro :) also i would have a great example to start with for learning c++. I am a newbie so i would like to know how would i parse the negetive numbers/arguments ? You have a great approach to the problem , i thing you will be able to generate the most robust and complete code :P Do you accept the challenge? :P :)
Mar 20, 2014 at 3:17 history answered 200_success CC BY-SA 3.0