2009年7月8日

摘要: How many built-in character types are there in C++? The answer may surprise you.The language described in the original 1978 C Programming Language (aka "the White Book") by Kernighan and Ritchie didn't have the keyword signed, meaning that there were only two character types: char and 阅读全文
posted @ 2009-07-08 22:57 做个不善的人 阅读(700) 评论(0) 推荐(0)
 
摘要: Notice: Unicode 只是分配整数给字符的编码表。现有若干种将一串字符表示为一串字节的方法。最显而易见的两种方法是将 Unicode 文本存储为 2 个 或 4 个字节序列的串。这两种方法的正式名称分别为 UCS-2 和 UCS-4. 在 Unix 下使用 UCS-2 (或 UCS-4) 会导致非常严重的问题. 用这些编码的字符串会包含一些特殊的字符, 比如 '\0' 或 '/', 它们在 文件名和其他 C 库函数参数里都有特别的含义. 另外, 大多数使用 ASCII 文件的 UNIX 下的工具, 如果不进行重大修改是无法读取 16 位的字符的. 基于 阅读全文
posted @ 2009-07-08 19:33 做个不善的人 阅读(2292) 评论(0) 推荐(0)
 
摘要: love affairlove affair就是恋爱,或热爱。巴格达一条充满了书店和文具店的著名街道现在空无一人。报导说:"The street was known for love affair with books," 那条街以前是以热爱书籍而闻名。 这说明love affair不一定是指恋爱。你可以说,他热爱唱卡拉OK -- his love affair with karaoke; 她热衷... 阅读全文
posted @ 2009-07-08 09:50 做个不善的人 阅读(299) 评论(0) 推荐(0)