wstringstream和wcout的真正用法

// ffffffff.cpp : Defines the entry point for the console application.
//
#include "StdAfx.h"
#include "IO.H"
#include 
#include 
#include 
#include 
using namespace std;
wstringstream *pBuffer=new wstringstream();


bool MyWrite(std::wstring& s)
{	
	
	pBuffer->clear();
	if((*pBuffer)<clear();
      if((*pBuffer)>>s)
		  return true;
   }
   return false;
}
  
int main(int argc, char* argv[])
{
    locale loc("chs");
	pBuffer->imbue(loc);
	wchar_t ws1[]=L"ddddddddddd";
	wstring ws=wstring(ws1);
	MyWrite(ws);
    std::wstring s2;
	MyRead(s2);
	std::wcout<

 

你可能感兴趣的:(wstringstream和wcout的真正用法)