摘要: char * strc = new char[strlen(str.c_str())+1]; strcpy(strc, str.c_str())这样转是返回一个串 而不是指针,如果直接 char *p = const_cast<char*>(a.c_str());则返回的不正确。 string pa 阅读全文
posted @ 2021-02-23 13:58 一颗大白鲸 阅读(15065) 评论(0) 推荐(0) 编辑