码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
Reorder List
//t 牵引拔出元素cur.next,后面的位置,为后面连起来用// p2 牵引将要插入元素后面的位置,为后面连起来用public void reorderList(ListNode head) { if(head==null || head.next==null || head.ne...
分类:其他好文   时间:2015-04-09 13:35:59    阅读次数:115
LeetCode --- 92. Reverse Linked List II
题目链接: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: ...
分类:其他好文   时间:2015-04-09 11:57:57    阅读次数:209
自定义Dialog实现
style.xml true @null @color/white true true true 0.5 //背景透明度 @anim/share_dialog_enter @anim/share_dialog_exit java代码Dialog dia...
分类:其他好文   时间:2015-04-09 11:55:04    阅读次数:143
Windows和Linux下获取当前可执行文件路径和工作目录
(1)获取当前可执行文件路径: #include #pragma comment(lib, "shlwapi.lib") wchar_t szExePath[MAX_PATH] = {0}; GetModuleFileNameW(NULL, szExePath, sizeof(szExePath)); PathRemoveFileSpecW(szExePath);...
分类:Windows程序   时间:2015-04-09 10:31:49    阅读次数:342
C# DataGridView控件清空数据完美解决方法
C# DataGridView控件绑定数据后清空数据在清除DataGridview的数据时:1.DataSource为NULL(DataGridView.DataSource= null;)这样会将DataGridView的列也删掉。2.用DataGridview.Rows.Clear();提示“不...
分类:Windows程序   时间:2015-04-09 10:25:22    阅读次数:308
Linked List Cycle
public class Solution { public boolean hasCycle(ListNode head) { if(head==null || head.next==null) return false; ListNode walk = head...
分类:其他好文   时间:2015-04-09 06:26:53    阅读次数:138
java中的DAO设计模式
创建数据库和表sql语句:DROP TABLE IF EXISTS product;CREATE TABLE product( product_id varchar(20) NOT NULL, product_name varchar(50) DEFAULT NULL, ...
分类:编程语言   时间:2015-04-09 00:56:34    阅读次数:149
velocity 判断 变量 是否不是空或empty
原先的#if($mobile)这种写法是不准确的 ,请换成"$!{mobile}"!=""说明 : #if($mobile) 这种写法只能 对null 起作用也就是说#if($mobile) or receiver_mobile =:mobile #end如果mobile 参数 是 null, 那么...
分类:其他好文   时间:2015-04-09 00:56:02    阅读次数:177
堆栈链表储存
//堆栈,链表实现#includeusing namespace std;class stack{public: int data; stack*next; };stack*Linkstack(){ stack*s = new stack; s->next = NULL; //生成...
分类:其他好文   时间:2015-04-09 00:50:22    阅读次数:103
mybatis无接口直接调用xml的helloworld
1、首先在库里面创建一张表,sql语句如下: CREATE TABLE `users` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(20) COLLATE utf8_bin DEFAULT NULL, `age` INT(11) DEFAULT NULL, PRIMARY KEY (`id`) ); ins...
分类:其他好文   时间:2015-04-08 23:28:58    阅读次数:444
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!