[Dev-C++] string conversion to integer
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alan T. <ala...@3n...> - 2001-01-20 16:31:29
|
I thought I knew how to convert string objects to integer. I
thought a character (e.g., input_string[2] of object string input_string)
could be referenced in a string and converted using the C ASCII-to-integer
function atoi. However, the compiler doesn`t like that and apparently does
not see an element of a string array as a character.
How do you do this? Thanks, Alan
|