I'm begginer with C++ and I would like to know the best way to obtain a
char* from a string object, for example:

string name = "Alice";
char* namePtr = (char*) string; // this is not possible : (

Obs.: I'm needing a char* and not a const char* pointer

Thanks.

Adriano Crestani

Reply via email to