static TCHAR szBuffer[256];
//初始化 szBuffer;
string strTmp( szBuffer );error C2664: '__thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(const
class std::allocator<char> &)' : cannot convert parameter 1 from 'unsigned short [256]' to 'const class std::allocator<char> &'
Reason: cannot convert from 'unsigned short [256]' to 'const class std::allocator<char>'
No constructor could take the source type, or constructor overload resolution was ambiguous
why?????
//初始化 szBuffer;
string strTmp( szBuffer );error C2664: '__thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(const
class std::allocator<char> &)' : cannot convert parameter 1 from 'unsigned short [256]' to 'const class std::allocator<char> &'
Reason: cannot convert from 'unsigned short [256]' to 'const class std::allocator<char>'
No constructor could take the source type, or constructor overload resolution was ambiguous
why?????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货