memset与NULL区别NULL与0
的区别为什么强调一个malloc对应一个free在一个结构体malloc,然后free,但是她的成员变量的malloc并没有free,还需要特别的free在全局变量的指针声明中,被设置为NULL,指针不是野指针=========================...
分类:
其他好文 时间:
2014-06-16 06:33:34
阅读次数:
701
水题#include #include #include using namespace std;int main(){ vector a(4); cin >> a[0] >> a[1]>>a[2]>>a[3]; string str; cin >> str; int res = 0; for(in...
分类:
其他好文 时间:
2014-06-14 23:00:14
阅读次数:
249
楼主在硅谷某软件公司实习三个月
持续更新实习过程中的感受趣闻
1.组里6个人有三个美国长大的亚裔,除了一个法国人和我其余都是英语为母语的...亚历山大
2.周一周三free lunch,楼下遍地餐厅,味道非常知足
3.拿到一台Dell Precision M4800作为工作电脑,16G内存,NVIDIA高端显卡,市价23000人民币,标配Mac Air价格的三倍了。可是用起来一点也...
分类:
其他好文 时间:
2014-06-14 07:45:15
阅读次数:
300
http://runjs.cn/square 经理给我看了html5做的捕鱼达人,感觉好牛叉。
还让我有空研究研究。。。
分类:
Web程序 时间:
2014-06-12 13:47:25
阅读次数:
243
从网上看的学习之1.
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符,与"+“、”-“、”*“、”/“有一样的地位。2.
new/delete是可以重载的,而重载之后,就成为了函数。3. malloc在申请内存的时候,必须要提供申请的长度,而且返回的指针是v...
分类:
其他好文 时间:
2014-06-10 16:45:26
阅读次数:
278
之前总结uptime和free命令,今天继续来总结一下iostat。给自己留个笔记,同时也希望对大家有用。
版本信息:
sysstat version 9.0.4
(C) Sebastien Godard (sysstat orange.fr)
基本使用:
iostat [ -c ] [ -d ] [ -N ] [ -n...
分类:
移动开发 时间:
2014-06-10 14:51:05
阅读次数:
241
关键词:
IOKING IOCP TCP Transmission Server Engine Lock Free Interlocked
云猴完成端口TCP通讯服务器引擎 无锁 原子锁(函数)
'IOKING' TCP Transmission Server Engine ('云猴'©TCP通讯服务器引擎)(预告版)
下载连接:
http://download.csd...
分类:
其他好文 时间:
2014-06-10 10:59:11
阅读次数:
157
Description
Problem A
The Most Distant State
Input: standard input
Output: standard output
The 8-puzzle is a square tray in which eight square tiles are placed. The remaining ninth square ...
分类:
其他好文 时间:
2014-06-10 07:59:06
阅读次数:
335
题目
Implement int sqrt(int x).
Compute and return the square root of x.
方法一
使用二分查找,注意int的边界问题,使用除法。
public int sqrt(int x) {
if (x <= 1) {
return x;
...
分类:
其他好文 时间:
2014-06-10 06:49:45
阅读次数:
274