asciitounicode的另一种方式

#include <windows.h>

#include <string>

#include <iterator>

int main()

{

const char* source = "Hello World";

std::wstring result;

std::copy(source, source + strlen(source), std::back_inserter(result));

}

posted @ 2011-05-24 10:06  imbadyc  阅读(178)  评论(0编辑  收藏  举报