[note] convert char to int in a string

11:01 AM at 11:01 AM

#include
#include

using namespace std;

int main()
{

//Some string here
string number = "123456789";

//Array to hold the separate integers
int intArray[ number.length() ];

//Convert from char to int
for ( int i=0; i < i="0;">

0 comments: