码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
LeetCode Linked List Cycle
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:其他好文   时间:2014-06-25 21:00:45    阅读次数:200
Android IntentService 与Alarm开启任务关闭任务
1:MyServicepublic class MyService extends IntentService{ AlarmManager alarmManager = null; PendingIntent alarmIntent = null; public MySe...
分类:移动开发   时间:2014-06-25 19:16:20    阅读次数:261
关于打开文件夹函数的用法 OpenFileDialog(转载)
CFileDialog文件选择对话框的使用:首先构造一个对象并提供相应的参数,构造函数原型如下:CFileDialog::CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL...
分类:其他好文   时间:2014-06-25 18:29:09    阅读次数:164
SQL Server 函数的使用 Function
create table student ( id varchar2(5) primary key, name varchar2(20), not null, sex char(2) check(sex='男' or sex='女') ) --向student中插入一条数据,用函数来验证插入是否正确 create or replace function (f_id in varchar2...
分类:数据库   时间:2014-06-25 00:11:31    阅读次数:376
C语言打乱一组数字顺序
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<time.h> intmain() { inta[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; intn=16; inti,j,T=1000,tmp; srand(unsigned(time(NULL))); while(T--) { i=rand()%n; j=rand()%..
分类:编程语言   时间:2014-06-24 16:30:44    阅读次数:259
laravel 数据库操作小例子
public function demo() { $res = null; //insert数据插入 //$user=array('username'=>'joy','password'=>'123456','age'=>23); //$res = DB::table('users')->i...
分类:数据库   时间:2014-06-24 12:38:08    阅读次数:9946
使用.NET向webService传double、int、DateTime 服务器得到的数据时null的问题(转http://blog.csdn.net/slimboy123/article/details/4366701)
用C#.NET调用Java开发的WebService时,先在客户端封装的带有int属性的对象,当将该对象传到服务器端时,服务器端可以得到string类型的属性值,却不能得到int类型、double和DateTime类型的值(在服务端得到的均为null)解决办法:VS2005封装WebService引...
分类:Web程序   时间:2014-06-24 12:14:47    阅读次数:254
Leetcode: Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->...
分类:其他好文   时间:2014-06-24 12:00:32    阅读次数:142
PHP生成唯一订单号
<?php function build_order_no(){ return date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8); ...
分类:Web程序   时间:2014-06-24 11:59:06    阅读次数:345
解决iScroll中事件点击一次却触发两次的问题
var t1=null;全局function myClick() { if (t1 == null){ t1 = new Date().getTime(); }else{ var t2 = new Date().getTime(); if(t2 - t1 < 500){...
分类:其他好文   时间:2014-06-24 11:07:24    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!