码迷,mamicode.com
首页 >  
搜索关键字:return null    ( 92144个结果
javascript通用参数判断
//判断value是小于等于max的数字function isNumberMax(value, max){ if(!isNumber(value) || !isNumber(max)){ return false; } if(parseInt(value) = min){ return true; ...
分类:编程语言   时间:2014-05-01 10:53:41    阅读次数:426
VC 获取指定文件夹路径的方法小结
VC获取指定文件夹路径flyfish 2010-3-5一 使用Shell函数1 获取应用程序的安装路径TCHAR buf[_MAX_PATH];SHGetSpecialFolderPath(NULL,buf,CSIDL_PROGRAM_FILES,NULL);AfxMessageBox(buf);2...
分类:其他好文   时间:2014-05-01 10:42:38    阅读次数:357
[leetcode]Swap Nodes in Pairs @ Python
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/题意:将链表中的节点两两交换。Given1->2->3->4, you should return the list as2->1->4->3.解题思路:这题主要涉及到链表的操作,没什么...
分类:编程语言   时间:2014-05-01 06:44:21    阅读次数:339
[leetcode]Remove Nth Node From End of List @ Python
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given a linked list, remove thenthnode from the end of list and return its he...
分类:编程语言   时间:2014-05-01 06:42:15    阅读次数:332
opencv 摄像头
VideoCapture cap(0); if(!cap.isOpened()) return -1; Mat frame, edges; namedWindow("edges",1); for(;;) { cap >> frame...
分类:其他好文   时间:2014-05-01 06:28:49    阅读次数:333
有趣的sql
1.给表添加,修改字段--添加alter table Infoadd ExpireDate varchar(50) not null--修改(手动修改表结构时,有时会遇到TimeOut过期的问题,用sql改的时候没有发现异常)alter table Infoalter column ExpireDa...
分类:数据库   时间:2014-05-01 05:24:10    阅读次数:489
c++ ACM常用函数
1 保留小数点后两位#include cout const char * spilt="/";char *p;p=strtok(str,spilt);while(p!=NULL){ //cout #includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:编程语言   时间:2014-05-01 05:05:45    阅读次数:409
LeetCode:Rotate List
题目链接Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.首...
分类:其他好文   时间:2014-05-01 04:52:19    阅读次数:288
Java 方法调用
在调用方法时,程序的执行流程会进入方法的内部,当执行到方法内部的return语句或执行完方法内部的代码以后,则返回到调用该方法的位置继续向下执行。 方法调用的语法分为以下两种: 1、一个类内部的方法调用:指调用以及被调用的方法都在一个类的内部。 2、不同类之间的方法调用:指调用以及被调用的方法位.....
分类:编程语言   时间:2014-05-01 04:23:35    阅读次数:381
SCJP_104——题目分析(1)
1.1) public class ReturnIt{2) returnType methodA(byte x, double y){3) return (short)x/y*2;4) }5) }what is valid returnType for methodA in line 2?这...
分类:其他好文   时间:2014-05-01 03:58:57    阅读次数:330
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!