📄 111.cpp
字号:
// 111.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "GBK.h"
///GBKToUnicode(wchar_t *to, char *from, int bytes)
int main(int argc, char* argv[])
{
char *gbk="我";
unsigned char *gbku=(unsigned char*)"我";
wchar_t unic[10];
char gbk1[10];
GBKToUnicode(unic,gbk,2);
UnicodeToGBK(gbk1,unic,1);
unsigned char *gbkget=(unsigned char*)gbk1;
printf("%d!!%d\n",gbku[0],gbku[1]);
printf("%x\n",unic[0]);
printf("%d!!%d\n",gbkget[0],gbkget[1]);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -