摘要: ASCII, ANSI, Unicode, GBK, GB2312, UTF-8; 437代码页,936代码页,,, 这都是些什么?乱糟糟的。。。网上海量的说明文章,按我自己的理解,总结一下:问题产生背景:(基础知识,可跳过)View Code 1. 计算机如何存储 英文字母标点符号这一系列字符? 最简单的思想就是给这一大堆字符规定个顺序,然后用自然数编号(注意:最小的自然数是0), 只让计算机只存储这些字符的数字编号;至于如何在屏幕上呈现给人类的问题交给显示器去做; 2. 各种字符编码集: 我们知道计算机的最小存储单元是1字节共8位,1个存... 阅读全文
posted @ 2012-07-16 14:04 庄庄庄 阅读(484) 评论(0) 推荐(0) 编辑
摘要: ARM 是Advanced RISC Machines的缩写;基础知识: RISC 是精简指令集计算机Reduced Instruction Set Computer的缩写 (指令字长固定,指令数目一般>100) CISC 是复杂指令集计算机Complex Instruction Set Computer的缩写 (指令字长不定,指令数码一般<200) CPSR 是程序状态寄存器 Current Program Status Register 的缩写,CPSR分4个8位区域(从高到低:Flags, Status, Extension, Control) ARM处理器共有个17+5+3 阅读全文
posted @ 2012-07-16 13:11 庄庄庄 阅读(211) 评论(0) 推荐(0) 编辑
摘要: ftp <ip>anonymousget <file> 阅读全文
posted @ 2012-07-16 09:22 庄庄庄 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 下面程序有一处错误导致 多错误:View Code 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 #include <assert.h> 5 typedef struct{ 6 int l, c; // lines, cols 7 } pos_t; 8 9 typedef struct { 10 char *str; 11 pos_t pos; 12 int w, h; // the width and height of a recttangle 1... 阅读全文
posted @ 2012-07-16 02:34 庄庄庄 阅读(265) 评论(0) 推荐(0) 编辑