现在位置: 首页 > datagrid发表的所有文章
  • 06月
  • 02日
综合 ⁄ 共 30458字 评论关闭
/* * @(#)ConcurrentHashMap.java 1.21 07/01/02 * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.util.concurrent; import java.util.concurrent.locks.*; import java.util.*; import java.io.Serializable; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; /** * A hash table supporting full concurrency of retrievals and * adjustable expected concurren......
阅读全文
  • 05月
  • 30日
综合 ⁄ 共 7267字 评论关闭
一、基础理解: var e = document.getElementById("selectId"); e. options= new Option("文本","值") ; //创建一个option对象,即在<select>标签中创建一个或多个<option value="值">文本</option> //options是个数组,里面可以存放多个<option value="值">文本</option>这样的标签 1:options[ ]数组的属性: length属性---------长度属性 selectedIndex属性--------当前被选中的框中的文本的索引值,此索引值是内存自动分配的(0,1,2,3.....)对应(第一个文本值,第二个文本值,第三个文本值,第四个文本......
阅读全文
  • 05月
  • 27日
综合 ⁄ 共 3547字 评论关闭
1.判断select选项中 是否存在Value="paraValue"的Item $("#selectid option[@value='paraValue']").length>0 2.向select选项中 加入一个Item $("#selectid").append("<option value=''>1111<option>"); 3.从select选项中 删除一个Item $("#selectid").remove("<option value=''>1111<option>"); 4.修改select选项中 value="paraValue"的text为"paraText" $("#selectid option:selected").attr("value","paraValue").attr("text","paraText"); 5. 设置select中text="paraText"的第一个Item为选中 ......
阅读全文
  • 05月
  • 02日
综合 ⁄ 共 766字 评论关闭
66.颠倒栈。 题目:用递归颠倒一个栈。例如输入栈{1, 2, 3, 4, 5},1在栈顶。 颠倒之后的栈为{5, 4, 3, 2, 1},5处在栈顶。 /* 66.颠倒栈。 题目:用递归颠倒一个栈。例如输入栈{1, 2, 3, 4, 5},1在栈顶。 颠倒之后的栈为{5, 4, 3, 2, 1},5处在栈顶。 每一次试图颠倒一个栈的时候,现在栈顶元素pop出来,再颠倒剩下的元素组成的栈, 最后把之前的栈顶元素放到剩下元素组成的栈的底部。 递归结束的条件是剩下的栈已经空了 */ #include <iostream> #include <stack> using namespace std; void PushToButto......
阅读全文
  • 04月
  • 27日
综合 ⁄ 共 258字 评论关闭
rowIndex :用于判断当前所在单元格所处行的索引 (从0开始) cellIndex :用于判断当前所在单元格所处列的索引(从0开始) 获得表格的总行数      用jquery                           $("#table的ID").find("tr").length 获得表格的总列数      用jquery                           $("#table的ID").find("th").length 获得表格的固定列行的值                      $("table tr:eq("+i+") td:eq("+j+") input").val()
阅读全文
  • 04月
  • 27日
综合 ⁄ 共 3907字 评论关闭
                     CFile   file;      WCHAR   szwBuffer[128];           WCHAR   *pszUnicode   =   L"Unicode   string ";   //   unicode   string        CHAR   *pszAnsi   =   "Ansi   string ";   //   ansi   string        WORD   wSignature   =   0xFEFF;               file.Open(TEXT("Test.txt"),   CFile::modeCreate|CFile::modeWrite);        file.Write(&wSignature,   2);        file.Write(pszUnicode,   lstrlenW(pszUnicode) * sizeof(WCHAR));   //   explicitly   use   lstrlenW   function ......
阅读全文
  • 04月
  • 20日
综合 ⁄ 共 4507字 评论关闭
原文地址:http://kb.cnblogs.com/page/162080/ 背景介绍      最近在看《密码学与网络安全》相关的书籍,这篇文章主要详细介绍一下著名的网络安全协议SSL。   在开始SSl介绍之前,先给大家介绍几个密码学的概念和相关的知识。   1、密码学的相关概念 密码学(cryptography):目的是通过将信息编码使其不可读,从而达到安全性。 明文(plain text):发送人、接受人和任何访问消息的人都能理解的消息。 密文(cipher text):明文消息经过某种编码后,得到密文消息。 加密(encryption):将明文消息变成密文消息。 解密(decr......
阅读全文
  • 04月
  • 16日
综合 ⁄ 共 9691字 评论关闭
参考原文:http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application 这里我们讨论怎么写个简单的应用。它只是简单的接受来自远程主机的信息。下面是源代码和makefile #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <string.h> /* change the word "define" to "undef" to try the (insecure) SNMPv1 version */ #define DEMO_USE_SNMP_VERSION_3 #ifdef DEMO_USE_SNMP_VERSION_3 const char *our_v3_passphrase = "The Net-SNMP Demo Password"; #endi......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 1200字 评论关闭
先上效果图. 其中是logo标识, 是待检测图片. 代码如下. #coding=utf-8 import cv2 import scipy as sp img1 = cv2.imread('x1.jpg',0) # queryImage img2 = cv2.imread('x2.jpg',0) # trainImage # Initiate SIFT detector sift = cv2.SIFT() # find the keypoints and descriptors with SIFT kp1, des1 = sift.detectAndCompute(img1,None) kp2, des2 = sift.detectAndCompute(img2,None) # FLANN parameters FLANN_INDEX_KDTREE = 0 index_params = dict(algorithm = FLANN_INDEX_KDTREE, trees = 5) search_params = dic......
阅读全文
  • 02月
  • 22日
综合 ⁄ 共 2471字 评论关闭
Description Big Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of cargo you can transport with it is never limited by the truck itself. It is only limited by the weight restrictions that apply for the roads along the path you want to drive.  Given start and destination city, your job is to determine the maximum load of the Godzilla V12 so that there still exists a path between the two specified c......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 5036字 评论关闭
1、司法考试历年试题及考点归类精解》(2006年版),法律出版社,主编:张能宝。 大家熟知的司考辅导名师阮齐林到我们学校搞司法考试讲座时就说到,如果你认为自己的水平可以,不用买什么是司法考试的书,也可以,但真题你必须看! 确实,从01年以前的律师资格考试到最近的04年司法考试,在试题的难度、广度、风格、难点重点方面,都有惊人的相同、相似性,有的题目甚至就是前几年的原题!!!03年卷四的一道刑法案例大题,竟然是00年考过的原题,一个字都没变!!!连续三个感叹号不知到你注意到了没有,8分的题目啊!你可知道03......
阅读全文
  • 12月
  • 14日
综合 ⁄ 共 2053字 评论关闭
题目:   已知strcpy函数的原型是: char * strcpy(char * strDest,const char * strSrc); 1.不调用库函数,实现strcpy函数。 2.解释为什么要返回char *。 解说: 1.strcpy的实现代码 char * strcpy(char * strDest,const char * strSrc) { char * strDestCopy=strDest; //[3] if ((strDest==NULL)||(strSrc==NULL)) //[1] throw "Invalid argument(s)"; //[2] while ((*strDest++=*strSrc++)!='\0'); //[4] return strDestCopy; }  错误的做......
阅读全文