码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
悬垂指针问题
当指针被撤销时,实际上撤销的不是指针本身,而是指针所指对象,指针仍保存着原先所指向的地址。在撤销指针后,应将指针置为NULL,否则它就会变成悬垂指针。当另一新指针被动态分配时,之前的悬垂指针会自动指向新指针所指对象。 1 #include 2 using namespace std; 3 int ....
分类:其他好文   时间:2015-04-03 14:46:42    阅读次数:119
Android基础-03
Android基础-03 01_android下数据库的创建(重点) 在Android平台上,集成了一个嵌入式关系型数据库—SQLite,SQLite3支持 NULL、INTEGER、REAL(浮点数字)、TEXT(字符串文本)和BLOB(二进制对象)数据类型,虽然它支持的类型只有五种,但实际上sqlite3也接受varchar(n)、char(n)、decimal(p,s) 等数据类型,...
分类:移动开发   时间:2015-04-03 13:36:52    阅读次数:167
Uncaught TypeError: Cannot set property 'innerHTML' of null
学习Chrome插件时,要在弹出页面中显示当前时间,结果怎样也显示不出来看了http://www.cnblogs.com/mfryf/p/3701801.html这篇文章后感悟颇深通过调试发现在js中的一段代码没有执行到,报以下错误 Uncaught TypeError: Cannot set p....
分类:Web程序   时间:2015-04-03 13:06:02    阅读次数:3637
怎么能让json_decode解析带斜杠的字符串
比如前台一个js object:{ aa: "cc\dd"}$d = '{\"aa\": \"cc\\dd\"}';这时候用 json_decode($d, true) 会返回NULL, 如果用stripslashes 处理的话,斜杠都没了,会变成 aa: ccdd怎么能支持带 \ 的decode。...
分类:Web程序   时间:2015-04-03 13:04:43    阅读次数:241
java中String a ; String a = null 和String a = ""的区别
String a; 申明一个string类型的 a,即没有在申请内存地址,更没有在内存任何指向引用地址;String a = null ; 申明一个string类型的 a,同时在内存里申请了一个地址,但是该地址不指向任何引用地址;String a = "" ;申明一个string类型的 a,既在内存...
分类:编程语言   时间:2015-04-03 13:04:26    阅读次数:138
编码实现链表逆序
Node Reverse(Node head){ if(head == NULL) return head; Node pre,cur,ne; pre = head; cur = head->next;//当前要逆转结点 while(cur){ ne = cur->next; cur->next = pre; ...
分类:其他好文   时间:2015-04-03 11:24:30    阅读次数:100
内存管理(不涉及hash管理)
#include #include using namespace std; struct MemNode { char *pname; int line; int size; MemNode *link; }; MemNode *node=NULL;//定义的头节点. void *operator new(size_t sz,const char *pname,int line)...
分类:其他好文   时间:2015-04-03 11:22:40    阅读次数:161
如何使用double-check实现一个单例模式
private object m_mutex = new object();private bool m_initialized = false;private BigInstance m_instance = null;public BigInstance Instance{ get ...
分类:其他好文   时间:2015-04-03 11:08:27    阅读次数:145
2015.4.2SQL 简单语句
1.创建一个student表 create table student_masen( sno char(4) not null primarykey sname nchar(10) not null sex char(1) null check('M','F') age smallint null ...
分类:数据库   时间:2015-04-03 11:06:52    阅读次数:163
2015/4/2 sql数据库创建表 表的关联
1.建立一个“学生”表 Studentcreate table student_muanfeng(sno char(4) primary key(主键),Sname char(20) unique(为约束),Ssex char(2) null check(sex in('M','F')),Sage ...
分类:数据库   时间:2015-04-03 11:01:26    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!