const unsigned char Str[] = "s\n\sabcv";
因为想用std::string自带的一些member function, 把Str按照下面的方法转化为string S_str:
string S_str(reinterpret_cast<const char*>(Str));
这个方法对不对呀?会有什么潜在的问题么?
因为想用std::string自带的一些member function, 把Str按照下面的方法转化为string S_str:
string S_str(reinterpret_cast<const char*>(Str));
这个方法对不对呀?会有什么潜在的问题么?