将string类转换成char *的常用方法为: string str; const char *str1; str1=str.c_str(); string str; const 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交