Lotus@
2008-12-07 19:30如何将 std: : string 转换为 const char * 或 char * ?
How can I convert an std::string
to a char*
or a const char*
?
转载于:https://stackoverflow.com/questions/347949/how-to-convert-a-stdstring-to-const-char-or-char
- 点赞
- 回答
- 收藏
- 复制链接分享
8条回答
为你推荐
- QT opencv darknet异常
- 深度学习
- c++
- 神经网络
- 机器学习
- 1个回答
- C++为什么将含有string类型的数据成员的类对象转换为char*类型会出错?
- c++
- 2个回答
- 求解答,请问为什么会报错error:cannot call member function 'void Time::get_time()'without object
- c++
- 1个回答
- E0144 a value of type "const char*" cannot be used to initialize an entity of type "char*"
- c语言
- c++
- 3个回答
- c++ 这个报错是什么原因?如何解决?
- c++
- 2个回答
换一换