码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
win32 wstring <-> string
static std::string w2c(std::wstring str) { int nlength = str.length(); int nbytes = WideCharToMultiByte(0,0,str.c_str(),nlength,NULL,0,NULL,NULL); if(nbytes == 0) return ""; char*buff = n...
分类:Windows程序   时间:2015-02-05 18:51:19    阅读次数:364
Linux BIO
bio.hstaticinlinestructbio*bio_kmalloc(gfp_tgfp_mask,unsignedintnr_iovecs) { returnbio_alloc_bioset(gfp_mask,nr_iovecs,NULL); }blk_rq_map_user_iov-mapuserdatatoarequest,forREQ_TYPE_BLOCK_PCusagescsi_ioctl.cstaticintsg_io(structrequest_queue*q,structgendisk*..
分类:系统相关   时间:2015-02-05 18:45:48    阅读次数:501
json模块
json--JSON操作描述:1).编码Python对象为JSON字符串importjsonprintjson.dumps([‘foo‘,{‘bar‘:(‘baz‘,None,1.0,2)}])2).解码JSON字符串为Python对象importjsonprintjson.loads(‘["foo",{"bar":["baz",null,1.0,2]}]‘)#输出:[u‘foo‘,u‘bar‘:[u‘baz‘,None,1.0,2]}]基本用法:(1).j..
分类:Web程序   时间:2015-02-05 18:40:46    阅读次数:218
求助:程序如何模拟鼠标点击一个TreeView节点?
void CreateTreeViewControl(HWND hMainWnd) { g_hTreeView = CreateWindow(WC_TREEVIEW, _T("Tree View"), WS_VISIBLE | WS_CHILD | WS_BORDER | TVS_HASLINES | TVS_LINESATROOT, 5, 5, 320, 480, hMainWnd, NULL...
分类:其他好文   时间:2015-02-05 18:23:35    阅读次数:162
《高级程序设计》3 基本慨念
1、javascript区分大小写2、所谓标识符,就是指变量、函数、属性的名字,或者函数的参数。第一个字符必须是一个字母、下划线(_)、或一个美元符号$其他字符可以是字母、下划线(_)、美元符号$或数字。不能把关键字、保留字、true、false和null作标识符。3、var操作符定义的变量将成为该...
分类:其他好文   时间:2015-02-05 18:18:53    阅读次数:146
HTTP Referer 防外链
HTTP Referer是header的一部分,当浏览器向web服务器发送请求的时候,一般会带上Referer,告诉服务器我是从哪个页面链接过来的,服务器籍此可以获得一些信息用于处理。 if (Request.ServerVariables["HTTP_REFERER"] == null || !....
分类:Web程序   时间:2015-02-05 17:42:34    阅读次数:155
java实现map和object互转的三种方法
/** * 使用org.apache.commons.beanutils进行转换 */ class A { public static Object mapToObject(Map map, Class beanClass) throws Exception { if (map == null) return null; Object obj = beanClass....
分类:编程语言   时间:2015-02-05 16:28:20    阅读次数:183
NGUI中TweenScale回调函数设为null时导致的BUG
今天使用NGUI的TweenScale时遇到一个问题 使用时TweenScale是用两次,playForward()和playReverse(),要求playForward()后啥都不做,playReverse()后执行函数 由于动画播放需要时间,不可能执行完playReverse()代码就执行指定函数 NGUI提供了对应的委托处理,所以思路上是在playForwar...
分类:其他好文   时间:2015-02-05 16:25:50    阅读次数:369
Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. 解题思路:简单的深拷贝思想,重点在于如何处理random结点...
分类:其他好文   时间:2015-02-05 15:01:57    阅读次数:151
spring里的controller之间的跳转
未测试:this.getServletContext().getRequestDispatcher("/rentHouse.htm?method=display").forward(request,response); return null;
分类:编程语言   时间:2015-02-05 13:21:44    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!