ci sono 2 modi:
1°)
STRING :: const char* c_str() const;
string num = "123";
char buff[6];
strcpy(buff, num.c_str());
e poi usi itoa
2°)
string myString="123";
int myInt;
try { myInt=Integer.parseInt(myString); }
catch(NumberFormatException e) { }