Can anyone tell me why the folowing is getting on error.
string orig = 123456789
string newSSN;
newSSN = orig.substr(0, 3) + "-" +
orig.substr(3, 2) + "-" +
orig.substr(5, 4);
char * newString = new char[strlen newSSN)+1];
ERROR = cannot convert `newSSN' from type `string' to type `const char *'
I am trying to convert string newSSN to a char array ,newString, but I keep getting that error.
Thanks,