string str; cin >> str; const char* cstr = str.c_str(); int* intArray = new int[str.length()]; int i; for(i = 0; i < str.length(); i++) intArray[i] = cstr[i] - '0';
delete[] intArray
intArray
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)