页首Html代码

返回顶部
摘要: 前一篇文章 中,宽字符集 打印中文,还需要设置 localelocale.h 也不多,附上 头文件的源码View Code /****locale.h - definitions/declarations for localization routines** Copyright (c) Microsoft Corporation. All rights reserved.**Purpose:* This file defines the structures, values, macros, and functions* used by the local... 阅读全文
posted @ 2012-09-06 10:21 ayanmw 阅读(837) 评论(0) 推荐(0) 编辑
摘要: wchar_t 是和 char 平等的地位,即 wchar_t 并非 typedef出来的,是原生的变量。简单的说,它拥有两个字节,和short 占用空间一样。比如:字符串 "我们\n"ANSI 的十六进制为:ce d2 c3 c7 0A 006个字节,其中包括字符串最后的\0Unicode十六进制为:11 62 EC 4E 0A 00 00 008个字节,所有的字符 全部是2个字节,即使字母 数字 都是,当然换行\n 也是0A 00 了。一般 程序中字符串 前面加个 L"" 就表示 是Unicode 字符串了。windows下有一个 宏 _T(&quo 阅读全文
posted @ 2012-09-06 00:30 ayanmw 阅读(3096) 评论(0) 推荐(0) 编辑

页脚Html代码