I want to find a way to convert the number in the string to an integer. i am able to find numbers in the string using isnum function but the problem is how to i make it an integer.
Converting a part of string to an integer in turbo c++
549 views Asked by AudioBubble At
1
I think what you need is the
atoi
function.Here is the code example from cplusplus.com: