1、适用范围:HTML中的input元素、option元素2、作用:禁用元素。被禁用的 input 元素既不可用,也不可点击。3、示例:①如下代码的button元素都处于禁用状态 ②如下代码的button元素都处于启用状态,注意时false不是“false”,目前来看只有下面这两种情...
分类:
Web程序 时间:
2014-06-27 00:45:05
阅读次数:
386
IplImage 结构解读:typedef struct _IplImage{int nSize;/* IplImage大小 */int ID;/* 版本 (=0)*/int nChannels;/* 大多数OPENCV函数支持1,2,3 或 4 个通道 */int alphaChannel;/* ...
分类:
其他好文 时间:
2014-06-26 21:37:24
阅读次数:
175
#include#includetypedef char* ElementType;typedef unsigned int Index;#define MinTableSize 15struct ListNode;typedef struct ListNode *Position;struct H...
分类:
其他好文 时间:
2014-06-26 18:04:01
阅读次数:
155
#include#include"fatal.h"typedef char* ElementType;typedef unsigned int Index;typedef Index Position;struct HashTbl;typedef struct HashTbl *HashTable;...
分类:
其他好文 时间:
2014-06-26 17:19:52
阅读次数:
150
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;typedef struct{ int weight, parent, lchild, rchild;}HTNode,*Huff...
分类:
其他好文 时间:
2014-06-26 16:54:53
阅读次数:
223
#include#include "fatal.h"struct TreeNode;typedef struct TreeNode *Position;typedef struct TreeNode *SearchTree;typedef int ElementType;SearchTree Mak...
分类:
编程语言 时间:
2014-06-25 12:53:17
阅读次数:
334
#include #include #include #include using namespace std; typedef struct Node { struct Node *next[10]; int flag; }Node,*Tree; int flag1; void Cre...
分类:
其他好文 时间:
2014-06-25 11:27:43
阅读次数:
154
Linux下的库操作工具-nm、ar、ldd、ldconfig和ld.so1、nm [options] file列出file中的所有符号[option]-c将符号转化为用户级的名字-s当用于.a文件即静态库时,输出把符号名映射到定义该符号的模块或成员名的索引-u显示在file外定义的符号或没有定义的...
分类:
系统相关 时间:
2014-06-25 09:04:46
阅读次数:
284
attribute method:
#include
struct packed
{
char a;
int b;
} __attribute__((packed));
struct not_packed
{
char a;
int b;
};
int main(void)
{
printf("Packed: %zu\n", sizeof(...
分类:
其他好文 时间:
2014-06-25 07:29:49
阅读次数:
155
当Nginx检测到配置文件中存在配置块http{}时,会建立一个ngx_http_conf_ctx_t结构体,该结构体定义如下:
typedef struct {
void **main_conf; // 每个指针元素指向所有由HTTP模块的create_main_conf方法产生的结构体
void **srv_conf; // 每个指针...
分类:
其他好文 时间:
2014-06-25 06:57:04
阅读次数:
233