View Single Post
Old 10-20-2004, 12:12 PM   #3 (permalink)
keystoneman
Registered User
 
Join Date: Sep 2004
Location: Lancaster, Pa
Posts: 24
keystoneman is on a distinguished road
Send a message via AIM to keystoneman
I'm not sure I follow the code here and what it is doing, it appears to me that what we are doing is assigning an integer 'theInt' the value of 'theCStyleString once it is used with the function atoi. The function atoi converts a C-string to an integer and returns the value, so the output of theInt is an integer. What I was looking for was to be able to have the user input lets say '12.50' then for the cpu to convert it to tweleve fifty. Is this possible? Did I miss interpert your code?
keystoneman is offline   Reply With Quote