|
From: <jos...@ya...> - 2001-02-01 07:43:46
|
--- Stein Nygaard escribió: > Hi there... > > How do I convert a string (like "7.25") to a float? > > Thanks! :) > > ------------- > #define stone > You need the function atof(). This function and atoi() and atol() are declared in stdlib.h Hope this helps Cheers, Chemanuel El rincón de Chemanuel - Resources for Windows programming in C++ --------------------------------- Do You Yahoo!? - Get personalized email addresses from Yahoo! Mail Personal Address - only $35 a year! |