码迷,mamicode.com
首页 >  
搜索关键字:nullptr null 0    ( 34233个结果
Reverse Linked List II
题目 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m,...
分类:其他好文   时间:2014-06-11 06:07:11    阅读次数:392
Mysql存储过程中使用cursor
一、表 学生表 CREATE TABLE `t_student` (    `stuNum` int(11) NOT NULL auto_increment,    `stuName` varchar(20) default NULL,    `birthday` date default NULL,    PRIMARY KEY  (`stuNum`)  ) ENGINE=In...
分类:数据库   时间:2014-06-11 00:22:53    阅读次数:249
Canvas清屏的实现
/** * Canvas清屏的操作 * * 参考资料: http://blog.csdn.net/lfdfhl/article/details/9076001 * */ private void cleanCanvas() { mCanvas = mSurfaceHolder.lockCanvas(); if (mCanvas != null) { Pain...
分类:其他好文   时间:2014-06-10 14:04:46    阅读次数:173
C# Null 赋值
在此之前,我们先看一段程序: class Program { static void Main(string[] args) { Children children = new Children(); SetInstanceNull(children); if (children == ...
分类:其他好文   时间:2014-06-10 13:15:30    阅读次数:230
Jave代码中生成url http请求
public static String sendPost(String url, String param)throws Exception { PrintWriter out = null; BufferedReader in = null; Stri...
分类:其他好文   时间:2014-06-10 09:30:00    阅读次数:234
MySQL优化器join顺序
前一篇介绍了cost的计算方法,下面测试一下两表关联的查询:测试用例CREATE TABLE `xpchild` ( `id` int(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `c1` int(11) DEFAULT NULL, `c2...
分类:数据库   时间:2014-06-10 08:55:13    阅读次数:370
判断A树是否包含B树结构
题目:输入两棵二叉树A和B,判断B是不是A的子结构分析:根据数的遍历方法,首先想到的是采用递归的方式要更简单些,树A从根节点进行遍历,首先判断与B的根节点值是否相等,如果相等则进行递归遍历验证,否则验证树A的其他节点,直到所有的结点遍历完。注意的就是指针是否为NULL,因为自己编程能力不好,所以有些...
分类:其他好文   时间:2014-06-10 08:27:18    阅读次数:162
Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not
我手动配置hibernate4.3.4,测试的时候出现: Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set 我是按照官方文档配置的,但是官方文档的代码好像有点问题 这是官方文档里面的那个工具类的部分代码:return new Confi...
分类:系统相关   时间:2014-06-10 07:26:34    阅读次数:371
WORD Application.Documents.Open函数返回null的一种解决方法
DCOM Config Setting for "Microsoft Office Word 97 - 2003 Document" 内部配置一切正常,但Application.Documents.Open函数还是返回null。下面是一个解决方法:"C:\Windows\SysWOW64\confi...
分类:移动开发   时间:2014-06-09 18:09:50    阅读次数:257
求单链表的中间节点,用快慢指针
Node* findMid(Node* &head){ if(head == NULL||head->next == NULL) return head; Node* p = head; Node* q = head; while(q->next->ne...
分类:其他好文   时间:2014-06-09 17:55:34    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!