转载自阮一峰http://www.ruanyifeng.com/blog/2014/03/undefined-vs-null.html大多数计算机语言,有且仅有一个表示"无"的值,比如,C语言的NULL,Java语言的null,Python语言的None,Ruby语言的nil。有点奇怪的是,Java...
分类:
其他好文 时间:
2015-03-07 22:28:14
阅读次数:
187
1 #include 2 using namespace std; 3 4 5 6 //AVL树节点信息 7 template 8 class TreeNode 9 { 10 public: 11 TreeNode():lson(NULL),rson...
分类:
其他好文 时间:
2015-03-07 21:15:39
阅读次数:
217
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
ARPCHECK=no /sbin/ifup eth1 2> /dev/null
Stdout from the command:
Device eth1 does not seem to be present, delaying initialization.
St...
分类:
Windows程序 时间:
2015-03-07 20:05:43
阅读次数:
1240
#include #include #include int main(void){ int i = 0; srand((unsigned)time(NULL)); while(i<30) { int a = rand()%100; int b = rand()%100; in...
分类:
其他好文 时间:
2015-03-07 18:38:37
阅读次数:
103
#include #include #include int main(void){ int i = 0; srand((unsigned)time(NULL)); //本地时间为种子 while(i<30) { int a = rand()%100; //产生随机...
分类:
其他好文 时间:
2015-03-07 18:30:59
阅读次数:
130
Windows 的注册表值有多种类型,如下图:图一是 REG_SZ 类型的注册表键值。图二是REG_DWORD 类型的。一下分别给出读这两种类型键值的程序:// 读取 REG_SZ 类型键值的代码HKEY hKey = NULL;DWORD dwSize = 0;DWORD d...
分类:
编程语言 时间:
2015-03-07 18:30:35
阅读次数:
375
源代码:#include#include#includevoid main(){ int a,i,k,m; //定义几个变量 srand((unsigned)time(NULL)); //定义随机数 // char g[4]={'+',...
分类:
其他好文 时间:
2015-03-07 18:30:24
阅读次数:
131
测试表SQL语句create table a ( id int unsigned not null primary key auto_increment, name char(50) not null default '')engine=myisam default charset=ut...
分类:
数据库 时间:
2015-03-07 18:24:55
阅读次数:
174
structNode{intvalue;Node*left;Node*right;Node(intval):value(val),left(NULL),right(NULL){}};#include#include#includeusingnamespacestd;voidpreOrder(Node...
分类:
其他好文 时间:
2015-03-07 16:58:40
阅读次数:
141
1,为当前已有的表添加新的字段alter table student add studentName varchar(20) not null;2,为当前已有的表中的字段设置为主键自增alter table student add constraint PK_studentId primaryKey...
分类:
移动开发 时间:
2015-03-07 13:57:48
阅读次数:
173