Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2014-11-28 14:08:00
阅读次数:
184
select函数用于在非阻塞中,当一个套接字或一组套接字有信号时通知你,系统提供select函数来实现多路复用输入/输出模型,原型:int select(int maxfd,fd_set *rdset,fd_set *wrset,fd_set *exset,struct timeval *timeo...
分类:
其他好文 时间:
2014-11-25 15:51:52
阅读次数:
203
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2014-11-25 12:21:50
阅读次数:
176
由于在默认的情况下digitalocean的VPS没有设置swap分区,用df -h命令查看的话,整个VPS上只有一个20G的分区。用free命令查看的话,swap分区的大小是0,增加swap分区的命令如下dd if=/dev/zero of=/.SWAP bs=1M count=1024mks.....
分类:
其他好文 时间:
2014-11-24 23:59:13
阅读次数:
767
1 #include 2 #include 3 #include 4 using namespace std; 5 6 int strToInt(string strA) 7 { 8 9 if(strA=="zero")10 {11 12 ...
分类:
其他好文 时间:
2014-11-23 18:47:15
阅读次数:
172
The malloc package void* malloc(size_t size) void free (void *p) other functions calloc: Version of malloc that initializes allocated block to zero re...
分类:
其他好文 时间:
2014-11-23 17:18:55
阅读次数:
180
REG_SZ REG_SZ 在注册表中,REG_SZ,是一种字符串类型,代表一个简单的文本字符串,是最常见的一种数据类型。 其中“SZ”是“String Zero”的缩写,匈牙利命名法,表示null结尾的字符串变量。 注:REG_SZ型注册表值项没有长度限制。原文出处:http://blog...
分类:
其他好文 时间:
2014-11-23 12:57:10
阅读次数:
171
大概有这几种:Runtime Error(ARRAY_BOUNDS_EXCEEDED) // array bounds exceed 数组越界Runtime Error(DIVIDE_BY_ZERO) //divisor is nil 除零Runtime Error(ACCESS...
分类:
其他好文 时间:
2014-11-22 00:44:18
阅读次数:
279
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2014-11-22 00:37:03
阅读次数:
145