链表中结点的分配和回收是由系统提供的标准函数malloc和free动态实现的,称之为动态链表。
如果程序支持指针,则可按照我们的一般形式实现链表, 需要时分配,不需要时回收即可.
动态链表的空间是可以动态扩展的。
typedef struct node{
EleType data;
struct node * pNext;
}Node;
有些高级语言中没有“指...
分类:
其他好文 时间:
2014-05-10 10:38:07
阅读次数:
297
PE(Portable Execute)文件是WIN32下可执行文件遵循的数据格式,也是反汇编调试必不可少的文件,常见的pe文件有.exe和.dll文件。本文主要介绍pe文件的结构和虚拟内存地址转换到文件地址的方法。
pe文件的基本结构
基本的pe文件主要包括以下部分:如下图
.text节:由编译器产生,村反击本的二进制机器码,我们调试很烦会变得而主要对象。.data节:数据块,宏定...
分类:
其他好文 时间:
2014-05-10 09:56:24
阅读次数:
311
有这样一个需求,要求在mysql存储过程中使用到事务,而且执行的是动态的sql语句
代码如下:
BEGIN
DECLARE in_data TEXT;
/** 标记是否出错 */
DECLARE errno INT DEFAULT '0';
/** 如果出现sql异常,则将t_error设置为1后继续执行后面的操作 */
DECLARE CONTIN...
分类:
数据库 时间:
2014-05-10 09:50:37
阅读次数:
541
The Chef likes to stay in touch with his staff. So, the Chef, the head server, and the sous-chef all carry two-way transceivers so they can stay in constant contact. Of course, these transceivers have...
分类:
其他好文 时间:
2014-05-10 09:11:21
阅读次数:
334
1.问题:安卓自带数据库SQLite数据读取时(ddms---data----data----yourprojectname----databases),当点击data时目录展不开。从而无法查看数据库表中的数据。
2.方法:第一获得ROOT权限,如何获得root权限?我下载了一个一键root工具,挺好用的
(muzisoft.exe)安装在电脑上,并连接手机。点击一键root,等几分钟即可。
...
分类:
移动开发 时间:
2014-05-10 08:44:09
阅读次数:
491
这在附另一个转柱形图的效果及代码.
原PHP报表效果:
转成Excel后的效果:
附上代码:
<?php
/**
* PHPExcel
*
* Copyright (C) 2006 - 2014 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify ...
分类:
Web程序 时间:
2014-05-10 02:19:56
阅读次数:
553
1.什么是Sqlite?
SQLite是轻量级的、嵌入式的、关系型数据库.
2.Sqlite储存在Android系统的哪?
数据库存储的位置在data/data//databases/
3.使用Sqlite基本流程
[1]创建一个类继承SQLiteOpenHelper并复写其中方法
[2]通过SQLiteOpenHelper的方法...
分类:
移动开发 时间:
2014-05-10 02:16:31
阅读次数:
681
John is going on a fishing trip. He has h hours available (1 <= h <= 16), and there are n lakes in the area (2 <= n <= 25) all reachable along a single, one-way road. John starts at lake 1, but he can finish at any lake he wants. He can only travel from on...
分类:
其他好文 时间:
2014-05-07 08:48:52
阅读次数:
515
1、修改boot.properties,将usernmae和password重设为明文,如:password=weblogicusername=weblogic2、将domain下\servers\AdminServer\data\ldap下的文件和目录都删除。3、重启weblogic即可。
分类:
Web程序 时间:
2014-05-06 12:39:00
阅读次数:
303
application/x-www-form-urlencoded、multipart/form-data、text/plain上传文件的表单中要加属性enctype="multipart/form-data",很多人只是死记硬背知道上传表单要这么
写,知其然而不知其所以然。那到底为什么要添加这个属...
分类:
其他好文 时间:
2014-05-06 10:34:11
阅读次数:
446