6.3w+
社区成员
BYTE ftry[] = { 0x10,0x03,0x74,0x72,0x79,0x04 };
string sFlag_try = (char*)ftry;
cout<<sFlag_try<<endl;
呢
这个能编译过吗?
#include "string"
#include "windows.h"
using namespace std;
int main()
{
BYTE ftry[] = { 0x10,0x03,0x74,0x72,0x79,0x04 };
string sFlag_try( ftry, ftry + sizeof(ftry) / sizeof(ftry[0]) );
cout<<sFlag_try<<endl;
return 0;
}
basic_string(
const value_type* _Ptr,
size_type _Count,
const allocator_type& _Al = Allocator ( )
);
basic_string(
const value_type* _Ptr,
const allocator_type& _Al = Allocator ( )
);
basic_string(
const basic_string& _Right,
size_type _Roff,
size_type _Count = npos,
const allocator_type& _Al = Allocator ( )
);
basic_string(
size_type _Count,
value_type _Ch,
const allocator_type& _Al = Allocator ( )
);
explicit basic_string(
const allocator_type& _Al = Allocator ( )
);
template<class _It>
basic_string(
_It _First,
_It _Last,
const allocator_type& _Al = Allocator ( )
);
basic_string(
const_pointer _First,
const_pointer _Last
);
basic_string(
const_iterator _First,
const_iterator _Last
);