Click here to Skip to main content
15,897,704 members

Comments by john_th (Top 4 by date)

john_th 25-Jul-13 10:02am View    
Great answer Aescleal!My 5!
john_th 17-Mar-13 7:26am View    
You are also wright about the '+' sign and I implemented it this way because my idea while coding this was that only you would want to change a float to char* so you knew that you would never have anything else in there except digits,a dot(or not)and maybe a '-' at the first position.And you would knew because of the way you would have implemented the char* to float function.Otherwise,why would you want to input as char* a float from the user?Input it as float and then convert it «safely» to char*.You would have converted the float to char without a '+'.Or that is what I thought.If for example you where «reading» numbers from a numerical equation,then you would have treat the '+' as addition.That was what I thinked of, but you are wright.I will also change that.After that I cannot think of anything else to expect for inputstr[].
john_th 17-Mar-13 7:10am View    
Ohh :-S Yes you're wright.I meant '-'.I changed it.Thank you.
john_th 15-Mar-13 20:45pm View    
Great work CPallini!I think really short code for such task!Working perfect.
Also +5.