摘要: #include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; enum TEXT_TYPE { TEXT_ANSI = 0, TEXT_UTF8 = 1, TEXT_U 阅读全文
posted @ 2021-01-07 15:17 任小七 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: //wstring转string std::string wstring2string(IN std::wstring& wstr) { std::string result; //获取缓冲区大小,并申请空间,缓冲区大小事按字节计算的 int len = WideCharToMultiByte(CP 阅读全文
posted @ 2021-01-07 14:57 任小七 阅读(250) 评论(0) 推荐(0) 编辑