11 2020 档案

摘要:int Ansi_To_Unicode(string strSrc, wstring& strRet){ wchar_t wBuff[102400] = { 0 }; CHAR sBuff[102400] = { 0 }; int iRet = MultiByteToWideChar(CP_ACP, 阅读全文
posted @ 2020-11-04 22:37 龙马8586 阅读(1024) 评论(0) 推荐(0) 编辑
摘要:int Utf8_To_Unicode(string strSrc, wstring& strRet){ wchar_t wBuff[102400] = { 0 }; int iRet = MultiByteToWideChar(CP_UTF8, 0, strSrc.c_str(), -1, wBu 阅读全文
posted @ 2020-11-04 22:30 龙马8586 阅读(734) 评论(0) 推荐(0) 编辑
摘要:void MySplit(const string& s, vector<string>& v, const string& c){ v.clear(); string::size_type pos1 = 0, pos2 = s.find(c); while (string::npos != pos 阅读全文
posted @ 2020-11-02 21:30 龙马8586 阅读(1285) 评论(0) 推荐(0) 编辑
摘要:template <class Type>Type StringToNum(const string& str){ istringstream iss(str); Type num; iss >> num; return num;} template <class Type>string NumTo 阅读全文
posted @ 2020-11-02 21:24 龙马8586 阅读(245) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示