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
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
1.使用get方式时,url类似如下格式:
[html] view
plaincopy
index.jsp?id=100&op=bind
GET报问头如下:
[html] view
plaincopy
GET /sn/index.php?sn=123&n=asa HTTP/1.1
Accept: */*...
分类:
编程语言 时间:
2014-07-14 18:42:29
阅读次数:
336
/*
* URL请求的类别分为二类,GET与POST请求。二者的区别在于:
* a:) get请求可以获取静态页面,也可以把参数放在URL字串后面,传递给servlet,
* b:) post与get的不同之处在于post的参数不是放在URL字串里面,而是放在http请求的正文内。
*/
URL url = new URL("http://localhost:8080/T...
分类:
其他好文 时间:
2014-07-14 18:30:54
阅读次数:
191
调用方式通过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