unicode和ASCII两种字符环境的区别
来源:互联网 发布:java数组输出在一行 编辑:程序博客网 时间:2024/05/05 15:03
#include <windows.h>
#include <tchar.h>
#include <sstream>
using namespace std;
#ifdef UNICODE
typedef wstring Astring;
typedef wostringstream OStringstream;
#else
typedef string Astring;
typedef ostringstream OStringstream;
#endif
int WINAPI _tWinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PTSTR lpCmdLine,
int nCmdShow)
{
PTSTR str = TEXT("你好");
PTSTR message = TEXT("hello");
int a = lstrlen(str);
OStringstream out_str;
out_str << "this is " << a << endl;
Astring s = out_str.str();
PCTSTR p = s.c_str();
MessageBox( NULL, p, str, MB_OK );
return 0;
}
- unicode和ASCII两种字符环境的区别
- ASCII和unicode两种编码的区别
- 字符编码中ASCII、Unicode和UTF-8的区别
- 字符编码中ASCII、Unicode和UTF-8的区别
- 【字符编码】ASCII、Unicode和UTF-8的区别
- 字符编码笔记:ASCII,Unicode 和 UTF-8 的区别
- ASCII和Unicode区别
- ASCII,Unicode和UTF-8的区别
- Unicode和ASCII的区别是什么?
- 浅析一下ASCII和UNICODE的区别
- ascii、unicode和utf-8的区别
- 字符编码区别:ASCII,Unicode和UTF-8
- 字符编码ASCII,Unicode和UTF-8的区别及理解
- JAVA 编码之 ASCII、Unicode、GBK和UTF-8字符编码的区别联系
- ASCII、Unicode、GBK和UTF-8字符编码的区别联系
- ASCII、Unicode、GBK和UTF-8字符编码的区别联系
- ASCII、Unicode、GBK和UTF-8字符编码的区别联系
- ASCII、Unicode、GBK和UTF-8字符编码的区别联系
- 爱情观......
- 扩展Struts的Plugin接口
- P2P将颠覆下一代互联网游戏规则
- RhythmLine
- 豺狼哲学
- unicode和ASCII两种字符环境的区别
- linux 设备驱动程序 时间流 总结
- [Oracle] 书写历史的甲骨文――ORACLE公司传奇
- 项目实践点点滴滴
- 第一篇文章
- W2K下安装 MYSQL 4.0.21 手记(原创)
- 信息、数据、熵和带宽
- 密钥词组密码的破译
- Microsoft Windows GDI+ JPG_Exp