C++程序报错error: cannot convert ‘std::__cxx11::string {aka std::__cxx11::basic_string
·
该错误是需要将C++字符串转换为C字符串。
使用stat(path.c_str())等string::c_str()方法将C++字符串转换为C字符串。
有关详细信息,请参阅http://cplusplus.com/reference/string/string/c_str/。
参考链接:
更多推荐
该错误是需要将C++字符串转换为C字符串。
使用stat(path.c_str())等string::c_str()方法将C++字符串转换为C字符串。
有关详细信息,请参阅http://cplusplus.com/reference/string/string/c_str/。
参考链接:
更多推荐
所有评论(0)