- 博客(7)
- 资源 (17)
- 收藏
- 关注
原创 字节序
大端(Big Endian)与小端 (Little Endian): 对大于一个字节的整数, 高位字节放在低地址处,低位字节放在高地址处,称为大端(Big Endian)字节序,反之则为小端 (Little Endian) 例如占两个字节的short类型整数:0x1234, 其放在地址0001开始的2个字节处,如果地址0001处放34, 0002处存放12,则为小端 (L
2012-02-17 10:48:55
246
原创 推出vim时自动保存session
在.vimrc中加入 : function AuMksession() : if v:this_session != "" : exe "mksession! " . v:this_session : endif : endfunction ":echo s:SessionLoadOwn : au VimLeavePre * call
2011-12-14 12:12:59
814
转载 vim自动补全‘(’。。。
在.vimrc中加入 :inoremap ( ()i :inoremap ) =ClosePair(')') :inoremap { {}i :inoremap } =ClosePair('}') :inoremap [ []i :inoremap ] =ClosePair(']') :inoremap i :inoremap > =ClosePair('>') functi
2011-12-11 15:27:27
444
原创 lookupfile 在新标签中打开文件
inoremap TabOpenFile() function! s:TabOpenFile() let fileName = getline('.') call lookupfile#CloseWindow() return "\:q\:tabnew " . fileName . "\" endfunction
2011-12-11 15:25:09
329
原创 打印字符串的全排列
<br />题目:打印字符串的全排列。如:“hat”,则打印hat hta aht ath tah tha.<br /> <br />代码如下:<br /> <br /><br />void f(char *str, int totalLen)<br />{<br /> int strLen = strlen(str);<br /> if (1 == strLen)<br /> {<br /> printf("%s/n", str - totalLen + 1);<br /
2010-06-25 16:32:00
378
原创 求正整数N以内5出现的次数。
<br />题目:给一正整数N,求出1到N的所有数中5出现的次数。例如N=25则5出现的次数为:5, 15, 25共3次。<br />代码如下:<br /> <br /><br /><br />int f1(unsigned int N)<br />{<br /> static int i = 0;<br /> static int j = 0;<br /> static int m = 0;<br /> static int numOf5 = 0;<br /> if (0 !
2010-06-25 16:29:00
1057
转载 Debugging a Service
Debugging a service is a bit more tricky than debugging a normal application for several reasons. First, the debugger cannot start the service; the SCM must start the service. Second, many services st
2010-01-27 15:06:00
282
VC++ 实战OLEDB编程
2009-12-21
core java volume2
2011-11-20
xmpp RFC6120
2011-11-20
UNIX环境高级编程(第二版)
2011-11-16
_opengl_r_programming_guide_the_official_guide_to_learning_opengl_r__version_2_1_6th_edition__opengl
2009-08-01
Core.Java8
2011-11-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅