Re: C++ Question [message #339988 is a reply to message #339983] |
Wed, 09 July 2008 14:29 |
dead6re
Messages: 602 Registered: September 2003
Karma:
|
Colonel |
|
|
"word" does not exist. There is a replacement called char which is an array. Or however you can look at the STD library for std::string.
int atoi( const char *str );
double atof( const char *str );
long atol( const char *str );
Most of the time you can cast between
int -> double/float
Don't go the other way though as you lose the decimal places.
Let all your wishes be granted except one, so you will still have something to strieve for.
[Updated on: Wed, 09 July 2008 14:32] Report message to a moderator
|
|
|