在这要先说明下 String str;和String str=null;的关系,代码上来说两者几乎不差什么,但是这里String str=null;多了个指向空的引用而String str ;却只是定义,String str=null比String str多了初始化的内容。但是String str=...
分类:
其他好文 时间:
2015-01-24 21:22:32
阅读次数:
220
$value) { $config[$key] = $value; } return $config;
} /** * 加载框架/应用类库 */
function &load_class($class, $directory = 'libraries', $param = NULL)
{ stati...
分类:
Web程序 时间:
2015-01-24 21:22:28
阅读次数:
199
首先,演示一个错误的reverList 1 class Solution { 2 public: 3 ListNode* reverse(ListNode* root) 4 { 5 if(NULL == root) 6 ...
分类:
其他好文 时间:
2015-01-24 20:00:01
阅读次数:
131
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:
其他好文 时间:
2015-01-24 17:10:49
阅读次数:
237
{CSDN:CODE:587936}
注意到反射main方法跟普通方法有区别:
调用invoke方法不能简单传入一个String数组,需要在外面再包一层Object数组
invoke(null,
new Object[]{ new String[]{"1","2"}});
这是因为jdk设计的问题,jdk1.4版本跟1.5以后的版本设计有区别,如下...
分类:
编程语言 时间:
2015-01-24 15:56:56
阅读次数:
144
1.数据库连接,需要连接没有数据表前缀 如下,第二个参数必须为null,我之前写的是’’,结果给我默认加了前缀 $User = M('User',Null,'DB_CONFIG2'); 2.AJAX获取url上pathinfo参数 $this->_request(paramname);
分类:
Web程序 时间:
2015-01-24 15:48:36
阅读次数:
171
请修改packages/apps/mms/src/com/android/mms/MmsConfig.java
public static boolean isSupportAttachEnhance() {
return mMmsFeatureManagerPlugin != null && mMmsFeatureManagerPlugin.isFeatureEnab...
分类:
移动开发 时间:
2015-01-24 14:32:36
阅读次数:
133
// GetFilePathByPid.cpp : Defines the entry point for the console application.//#include "stdafx.h" int main(){ BOOL b = FALSE; HANDLE hnd = NULL; PRO...
分类:
其他好文 时间:
2015-01-24 14:22:04
阅读次数:
190
jQuery.extend({ type: function( obj ) { if ( obj == null ) { return String( obj ); } // Support: Safari <= 5.1 (fun...
分类:
Web程序 时间:
2015-01-24 12:50:15
阅读次数:
176
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list. 这题 是靠http://www.cnblogs.com/zuo...
分类:
其他好文 时间:
2015-01-24 11:38:29
阅读次数:
159