【程序】给C++的cout和fstream添加Unicode支持,使其能向屏幕或文件输入/输出wchar_t字符串
【程序】#include#include#include#defineRDBUF_LEN200usingnamespacestd;ostream&operator>(istream&is,wstring&ws){intn=0;wchar_t*wp;if(is==cin){/*从控制台中输入一行字符串*/boolcomplete=false;DWORDdwRead;//实际读到的字符个数HANDLE