上一页 1 ··· 5 6 7 8 9
摘要: @rem get-perl.batpushd %tmp%wget http://cmath.googlecode.com/files/perl56.7z7z e perl56.7zmove perl.exe %windir%move perl56.dll %windir%del perl56.7zpopdreg add "hkcr\perlscript\DefaultIcon" /ve /d "%windir%\perl.exe,0" /fassoc .pl=perlscriptftype perlscript=%windir%\perl.exe &qu 阅读全文
posted @ 2012-07-18 00:58 庄庄庄 阅读(684) 评论(0) 推荐(0) 编辑
摘要: ASCII, ANSI, Unicode, GBK, GB2312, UTF-8; 437代码页,936代码页,,, 这都是些什么?乱糟糟的。。。网上海量的说明文章,按我自己的理解,总结一下:问题产生背景:(基础知识,可跳过)View Code 1. 计算机如何存储 英文字母标点符号这一系列字符? 最简单的思想就是给这一大堆字符规定个顺序,然后用自然数编号(注意:最小的自然数是0), 只让计算机只存储这些字符的数字编号;至于如何在屏幕上呈现给人类的问题交给显示器去做; 2. 各种字符编码集: 我们知道计算机的最小存储单元是1字节共8位,1个存... 阅读全文
posted @ 2012-07-16 14:04 庄庄庄 阅读(482) 评论(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 庄庄庄 阅读(208) 评论(0) 推荐(0) 编辑
摘要: ftp <ip>anonymousget <file> 阅读全文
posted @ 2012-07-16 09:22 庄庄庄 阅读(139) 评论(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 庄庄庄 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 自编题:任意给定两个字符串,比如"The UNIX...." 和 "The only ...." 如何如下显示? 用纯C实现。 1 #include <stdio.h> 2 #include <string.h> 3 #define L 23 4 #define C 80 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 阅读全文
posted @ 2012-07-15 21:56 庄庄庄 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 函数指针:看这样一个声明:void *(*)(void *)(void*(*act[3])(void *))(void *(*)(void *), void *);晕了没?用typedef分解下:原声明等价于:typedef void *(*Func)(void *);Func (Func[3])(Func, void *);即act是一个数组,该数组有3函数指针的成员,每个成员作为函数指针,返回一个void *(*)(void *)型的函数指针,同时每个成员作为函数指针其参数有两个,第一个参数的类型是void *(*)(void *)型的函数指针,第2个参数的类型是void *;分解诀窍: 阅读全文
posted @ 2012-07-15 08:00 庄庄庄 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 还没找到我满意的博客网站, 用户体验,快速简洁,方便易用是我考察的标准! 阅读全文
posted @ 2012-07-15 07:32 庄庄庄 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9