- 博客(3)
- 资源 (4)
- 收藏
- 关注
原创 sizeof
#includevoid main(){struct Test { int a[3]; char b; short c;};typedef struct Test test2;struct Test test={{2,4},88,3};struct Test test1;printf("%d",sizeof(test2));printf("%d",sizeof(test
2015-10-23 23:00:07 437
转载 TCP长连接与短连接
来自:http://www.cnblogs.com/beifei/archive/2011/06/26/2090611.html1. TCP连接当网络通信时采用TCP协议时,在真正的读写操作之前,server与client之间必须建立一个连接,当读写操作完成后,双方不再需要这个连接时它们可以释放这个连接,连接的建立是需要三次握手的,而释放则需要4次握手,所以说每个连接的建立都是
2015-10-18 22:33:40 632
原创 坏的数组下标
#!/bin/bashif [ $# -ne 1 ];then echo "wrong";exitfi path=$1;declare -A statarray;while read line;doftype= file -b "$line" | cut -d, -f1let statarray["$ftype"]++;done < <( find $path -type f -print )ec
2015-10-18 21:58:34 1332
JAVA游戏编程
2017-12-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人