Does anyone know how to convert a string to a float?
I'm writing a program with strict error control and need an idea of how to prevent cin fail states when the end user types in a price.
Thanks,
bob2509
Does anyone know how to convert a string to a float?
I'm writing a program with strict error control and need an idea of how to prevent cin fail states when the end user types in a price.
Thanks,
bob2509
atof(const char *string);
http://msdn.microsoft.com/library/de...htm/crt2_5.asp
Thanks.