c++ std::ifstream #include <iostream>#include<plug/plug.h>usingnamespacestd;//使用宽字符,我猜是为了适应那些要使用宽字符的国家intmain() { auto path= Plug::GetCurrentPath();//返回std::wstring宽字符std::wstring line; path+= L"hello.txt";//L表示宽字符std::wifstream wif(path); wif>>lin...
ifstream *inFile =newifstream(szFile); std::wstring szwFileStr((std::istreambuf_iterator<wchar_t>(*inFile)),std::istreambuf_iterator<wchar_t>()); It fails,on the bold part Need the string, containing the input from the file, to be a std::wstring (needs to handle somce chars, no...