【发布时间】:2013-03-13 18:39:11
【问题描述】:
如何将 const Byte* 转换为 std::string。我尝试了以下
std::string sTemp(reinterpret_cast<const char*>(ByteBuffer));
其中 ByteBuffer 是 const Byte*。使用上面的代码没有得到 sTemp 中 ByteBuffer 的值 请帮忙
谢谢,
【问题讨论】:
-
什么是
Byte? “没有得到价值”是什么意思?
标签: c++ visual-c++