-
Conversions
Hello, if anyone can help me with this problem, I will really appreciate it. Okay! Is it possible to convert string to any other data type, such as int, float, or double? If there is, can you point me in the right direction? Just a little background information: I am reading in a string from a file, dividing it accordingly, but I need to use some components of the divided string within my program. I hope I have provided you with enough information to help me with my problem. Thanks in advance!!!
-
Consider these C-style functions.
atoi()
atof()
Kuphryn
-
are those commands from C++?
-
Those functions are part of the c-library that comes with C++ library.
Kuphryn
-
Can you tell me what their names are? I am unfamiliar with those functions and would feel uncomfortable using them. I know this is a lot to ask of you, but are there other conversion methods you can tell me and where can I find them?
-
Here is one C++ reference website.
http://www.cplusplus.com/ref/
Kuphryn
-
In what Library are the atoi(), and atof().
-