LInux下使用mbstowcs函数可以将char转化为wchar_t函数含义:convert a multibyte string to a wide char string说明: The behaviour of mbstowcs depends on the LC_CTYPE category of the current locale返回值: The mbstowcs() function returns the number of wide characters th
#include <stdio.h> int i = 0; while (i < 20) { i++; WriteLog("d:\\log.txt","aaaa中国人民"); } /utf-8格式 //WriteLog("d:\\log.txt", "aaaa中国人民"); void WriteLog(char* file_path,string s) { s = s + "\r\n&q