小保哥

博客园 首页 新随笔 联系 订阅 管理

2012年12月26日 #

摘要: 首先下载ctags程序,以--help参数运行之,了解其使用方法。主要也就是-R ..\x\y\directory -f ..\x\y\directory\tags_file_name在使用tags文件的时候,需要先将当前目录设置为tags文件所在目录::cd 盘符:cd ..\x\y\directory\tags_file_name:set tags=tags_file_name这时就可以正常使... 阅读全文
posted @ 2012-12-26 10:02 小保哥 阅读(230) 评论(0) 推荐(0)

2012年12月21日 #

摘要: int nLen = ::GetWindowTextLength();CString strTitle;::GetWindowText(hWnd, strTitle.GetBufferSetLength(nLen), nLen+1);strTitle.ReleaseBuffer(); 阅读全文
posted @ 2012-12-21 16:55 小保哥 阅读(138) 评论(0) 推荐(0)

摘要: 参考:http://www.shido.info/lisp/scheme5_e.htmlThe eq?, eqv?, and equal? take exactly two arguments and are basic functions to check if the arguments are 'same'.These three functions are slightly differe... 阅读全文
posted @ 2012-12-21 00:55 小保哥 阅读(238) 评论(0) 推荐(0)

2012年12月18日 #

摘要: 关键词:两弹一星东风2号东风5号长征2F逝世 阅读全文
posted @ 2012-12-18 00:45 小保哥 阅读(125) 评论(0) 推荐(0)

2012年12月17日 #

摘要: MSXML2::IXMLDOMNodePtr pRoot = .....;MSXML2::IXMLDOMNodeListPtr childs = pRoot->childNodes;这句与MSXML2::IXMLDOMNodeListPtr childs = pRoot->selectNodes(L"./*");等价.值得指出的是下面这句在msxml中查不出东西来:pNode->selectSin... 阅读全文
posted @ 2012-12-17 11:30 小保哥 阅读(265) 评论(0) 推荐(0)

2012年12月15日 #

摘要: ; 获取文件中的所有行(map list->string (with-input-from-file filename (λ () (let loop ((ls1 '()) (ch (read-char)) (ret '())) (if (eof-object? ch) (begin ... 阅读全文
posted @ 2012-12-15 16:27 小保哥 阅读(183) 评论(0) 推荐(0)

2012年12月11日 #

摘要: ///////////////////////////////////////////////////////////////////////////////////////////// class CWnd ////////////////protected: // for processing Windows messages virtual LRESULT Windo... 阅读全文
posted @ 2012-12-11 14:37 小保哥 阅读(286) 评论(0) 推荐(0)

2012年12月10日 #

摘要: Yet Another Scheme Tutorial第8章Exercise 4.2:(sort '('(1) '(1 2) '(0) '() '(3 3 2)) (lambda (ls1 ls2) (> (length ls1) (length ls2))))怎么跑都出不了结果,而且length总是为2后来改为(sort '((1) (1 2) (0) () (3 3 2... 阅读全文
posted @ 2012-12-10 00:27 小保哥 阅读(138) 评论(0) 推荐(0)

2012年12月8日 #

摘要: 当有个想法的时候,立即记下该想法。然后着手原型设计:1、要达到的目标2、仅仅围绕上述目标设计,不要发散及过度设计,否则原型很有可能失败3、需要的对象4、流程5、运行测试其中,第3点,即需要的对象,实际就是对数据结构的设计,这里坚决不要涉及数据库!整个设计中都不要考虑数据库。所有的数据、对象都应该维持在内存结构里,至少第一代原型应该是这样,因为数据库表结构的设计会分散巨大的精力极有可能,而且增加原型... 阅读全文
posted @ 2012-12-08 13:56 小保哥 阅读(164) 评论(0) 推荐(0)

2012年12月6日 #

摘要: 安装virtual box的machine为宿主。virtual box里面的machine为虚拟机。目标1:虚拟机与宿主在同一局域网(宿主所在的局域网)地位等同==使用bridge方式。虚拟机的网络设置参考宿主的网络设置。目标2:虚拟机只对宿主可见(即宿主可以访问虚拟机,但虚拟机不能访问外网)==使用Host only方式。选用此方式时,宿主的网络连接设置处会多出一个VirtualBox Hos... 阅读全文
posted @ 2012-12-06 14:12 小保哥 阅读(246) 评论(0) 推荐(0)