sockaddr结构体sockaddr的缺陷:struct sockaddr 是一个通用地址结构,这是为了统一地址结构的表示方法,统一接口函数,使不同的地址结构可以被bind() , connect() 等函数调用;sa_data把目标地址和端口信息混在一起了struct sockaddr { un...
分类:
其他好文 时间:
2014-07-16 19:22:47
阅读次数:
232
1.结点
链表中用来存储一个数据的存储单元。
一个链表至少需要由两部分组成,就是数据域和指针域,一般形式的结点定义为:
struct node
{
Elem data; //Elem类型泛指基本数据类型
struct node *next;
}
typedef struct node Elemsn;
以上两步等价于:
typedef struct node
{...
分类:
其他好文 时间:
2014-07-15 13:01:24
阅读次数:
281
In this blog, generic collections will be talked about in details. In the past bacause of shortage of generic argument, less importance has been attached to the this module. Just now after
readin...
分类:
其他好文 时间:
2014-07-15 12:45:00
阅读次数:
253
定制progrebar,这里以progrebar(small)为例,使之在2.x系统里显示holo风格。1)找到系统文件styles.xml和themes.xml。在目录adt-bundle\sdk\platforms\android-19\data\res\values下找到styles.xml和themes.xml,用Uedit打开;2)在系统的styles.xml中搜索控件名称progrebar,..
分类:
其他好文 时间:
2014-07-15 11:43:07
阅读次数:
239
daniel@daniel-mint /usr/lib/ghc/haskell2010-1.1.1.0 $ tree.├── Control│ └── Monad.hi├── Data│ ├── Array.hi│ ├── Bits.hi│ ├── Char.hi│ ├── Complex.hi│ ...
分类:
其他好文 时间:
2014-07-14 20:35:19
阅读次数:
225
移除事件 unbind(type [,data]) //data是要移除的函数 $('#btn').unbind("click"); //移除click $('#btn').unbind(); //移除所有 对于只需要触发一次的,随后就要立即解除绑定的情况,用one() $('#btn').one(...
分类:
Web程序 时间:
2014-07-14 19:45:27
阅读次数:
333
DES算法简介DES(DataEncryptionStandard)是发明最早的最广泛使用的分组对称加密算法。DES算法的入口参数有三个:Key、Data、Mode。其中Key为8个字节共64位,是DES算法的工作密钥;Data也为8个字节64位,是要被加密或被解密的数据;Mode为DES的工作方式...
分类:
编程语言 时间:
2014-07-14 19:10:11
阅读次数:
246
调用方式通过data属性无需编写JavaScript代码即可生成一个对话框。在一个主控元素,例如按钮,上设置data-toggle="modal",然后再设置data-target="#foo" 或href="#foo" 用以指向某个将要被启动的对话框。Launch modal通过JavaScrip...
分类:
Web程序 时间:
2014-07-14 17:46:09
阅读次数:
363
上次介绍了如何使用ansibleplaybook安装zabbix客户端(http://dl528888.blog.51cto.com/2382721/1436745),这次介绍一下如何使用playbook安装mysql。下面是安装mysql的信息:mysql_basedir:/data/mysql/basedir源码目录
mysql_datadir:/data/mysql/datadir数据目录
mysql_user..
分类:
数据库 时间:
2014-07-14 16:31:20
阅读次数:
484
int fscanf( FILE *stream, const char *format [, argument ]... );
下面是csdn的例子:
/* FSCANF.C: This program writes formatted
* data to a file. It then uses fscanf to
* read the various data back from...
分类:
其他好文 时间:
2014-07-14 16:15:19
阅读次数:
207