#include <locale.h>
1 setlocale(LC_ALL, "zh-CN"); 2 wchar_t wch = L'我'; 3 putwchar(wch);
1 #define _CRT_SECURE_NO_WARNINGS 2 #include <string.h> 3 #include <stdio.h> 4 #include <locale.h> 5 #include <Windows.h> 6 7 //求长度 8 int mywcslen(wchar_t *wstr) 9 { 10 int i = 0; 11 while (*wstr != '