please help.
i need to convert a char array (with a numeric value) to an integer. how do i do that in c++?
thanks a lot.
This is a discussion on how do i convert a char array to an integer ? (c++) within the C++ Programming forums, part of the General Programming Boards category; please help. i need to convert a char array (with a numeric value) to an integer. how do i do ...
please help.
i need to convert a char array (with a numeric value) to an integer. how do i do that in c++?
thanks a lot.
Last edited by mbh; 10-30-2002 at 10:40 PM.
use the function atoi(char *)
No, use stringstream.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling