码迷,mamicode.com
首页 >  
搜索关键字:return null    ( 92144个结果
php 获取 手机浏览器的信息 获取手机号
$val){ $gstr = str_replace( "& ", "& ",$val); $str.= "$key -> ".$gstr. "\r\n "; } Return $str; } /** * 函数名称: getUA * 函数功能: 取UA * ...
分类:移动开发   时间:2014-05-05 21:44:06    阅读次数:582
POJ-1011-Sticks
题目链接:http://poj.org/problem?id=1011 这道题用到了深搜+剪枝。 #include #include #include using namespace std; int a[65]; int vis[65]; int n; int cmp(int x,int y) { return x>y; } int dfs(int len,int need,int ...
分类:其他好文   时间:2014-05-05 13:28:57    阅读次数:290
【LeetCode】Remove Element
题目: Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn't matter what you leave beyond the new len...
分类:其他好文   时间:2014-05-05 12:58:57    阅读次数:294
realloc 用法
参考文献: http://blog.csdn.net/snlying/article/details/4005238返回情况 :返回的是一个void类型的指针,调用成功。(这就再你需要的时候进行强制类型转换)返回NULL,当需要扩展的大小(第二个参数)为0并且第一个参数不为NULL,此时原内存变成了...
分类:其他好文   时间:2014-05-03 22:46:37    阅读次数:518
用python实现欧几里德算法求最大公约数
方法1:defgcd(x, y):whilen: x, y=y, x%yreturnx方法2:def yue(x,y): if y: return gcd(y,x%y) else: return x
分类:编程语言   时间:2014-05-03 22:46:11    阅读次数:344
action.result is undefined
原因是没有return格式错误或没有写return
分类:其他好文   时间:2014-05-03 22:36:55    阅读次数:409
Local Functions
int BOOST_LOCAL_FUNCTION(int x, int y) { // Local function. return x + y; } BOOST_LOCAL_FUNCTION_NAME(add) BOOST_TEST(add(1, 2) == 3); // Local function call. int BOOST_LOCAL_FUNCTION(void) ...
分类:其他好文   时间:2014-05-03 21:47:48    阅读次数:332
保护索引要注意的问题
1. IS NULL 与 IS NOT NULL 不能用null作索引,任何包含null值的列都将不会被包含在索引中。即使索引有多列这样的情况下,只要这些列中有一列含有null,该列就会从索引中排除。也就是说如果某列存在空值,即使对该列建索引也不会提高性能。   任何在where子句中使用is null或is not null的语句优化器是不允许使用索引的。 2. 避免使用不兼容的数据类型。...
分类:其他好文   时间:2014-05-03 21:15:26    阅读次数:264
非递归的方法遍历二叉树
//非递归遍历一棵树 需要借助栈 #include #include struct Tree { int nValue; Tree *pLeft; Tree *pRight; }; struct Stack { Tree *root; Stack *pNext; }; Stack *pStack = NULL; void push(Tree *root) { St...
分类:其他好文   时间:2014-05-03 20:55:41    阅读次数:325
复习PHP-语言参考-预定义变量
1.在之前的笔记中已经写过了,所以这里快速过一次。GLOBALS:发现一个有趣的事:$GLOBALS里有一个GLOBALS元素,是一种递归数组,实现的办法是设定一个相同名的元素,值为本身的引用。$php_errormsg:终于发现如果服务器把错误提示关了杂办,判断它是否为NULL就行了。$HTTP_RAW_..
分类:Web程序   时间:2014-05-03 20:34:41    阅读次数:329
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!