string a=“abc”;

char *s = (char*) a.c_str();

char *s = (char*) a.data();

 

相关文章: