码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果)
undefined与null的区别
转载自阮一峰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
vagrant启动报错The following SSH command responded with a non-zero exit status.
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
随机的30道四则运算题(简单的c)
#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
C++ 读取 Windows 注册表值
Windows 的注册表值有多种类型,如下图:图一是 REG_SZ 类型的注册表键值。图二是REG_DWORD 类型的。一下分别给出读这两种类型键值的程序:// 读取 REG_SZ 类型键值的代码HKEY hKey = NULL;DWORD dwSize = 0;DWORD d...
分类:编程语言   时间:2015-03-07 18:30:35    阅读次数:375
编程:要求随机产生30到小学2年级的四则运算题
源代码:#include#include#includevoid main(){ int a,i,k,m; //定义几个变量 srand((unsigned)time(NULL)); //定义随机数 // char g[4]={'+',...
分类:其他好文   时间:2015-03-07 18:30:24    阅读次数:131
mysql 内联接、左联接、右联接、完全联接、交叉联接 区别
测试表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
MySql数据库在表中添加新字段,设置主键,设置外键,字段移动位置,以及修改数据库后如何进行部署和维护的总结
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!