C++中将string转化为char

来源:互联网 发布:java mvc设计模式实例 编辑:程序博客网 时间:2024/05/10 20:36

char *test;

std::string str;

test =strdup(str.c_str());

原创粉丝点击