I am using Visual Studio C++ 2008 (Express). When I run the below code, the wostream (both std::wcout, and std::wfstream) stops outputting at the f
std::wcout
std::wfstream
Include the following header file
#include
at the start of main, add the following line.
std::locale::global(std::locale("chinese"));
This helps to set the proper locale.