现在位置: 首页 > ToolacroesTag发表的所有文章
  • 08月
  • 07日
综合 ⁄ 共 188字 评论关闭
最近被租房子弄的头疼,明天上班干活,后天请假去找房子。   windows下计时器  常见两种调用方式:1、settime(hwd,定义的计时器ID,毫秒时间,NULL)    2、settime(hwd,计时器ID,毫秒时间,timeproc回调函数)。   1是在WM_TIMER 中处理的。2是在回调函数timeproc中处理的。   killtime  任何时刻 停止 wm_timer 消息。
阅读全文
  • 03月
  • 20日
综合 ⁄ 共 1958字 评论关闭
A字符串反转 #include <cstdio> #include <cstdlib> #include <string> /*string reverse: input:hello world output:world hello 思想:将字符串全部反转后再以空格为标志,将局部字符串再反转 */ int main(void) { void string_reverse(char *str,int len); void word_reverse(char* str); char str[] = "hello world"; word_reverse(str); printf("%s/n",str); return 0; } void string_reverse(char *str,int len) { char *head = str; char *tail = str + len - 1; char temp; for(;head<tai......
阅读全文
  • 09月
  • 28日
综合 ⁄ 共 4614字 评论关闭
转载地址:http://book.51cto.com/art/200811/96235.htm 2.2.4  HTML各种组件和Servlet的处理方法 本节的代码在HtmlTags目录中,它包括form1.html和ProcessForm1.java两个文件,其他文件是后面章节的代码。 运行本节例子的网址如下: http://localhost:8080/HtmlTags/form1.html 在前面的章节中,已经演示了Servlet处理简单HTML组件(即单行输入框)的情况,HTML组件还包括诸如单选按钮、多选框(复选框)、单选菜单、多选菜单的情况,Servlet如何读取这些组件的数据,是本节的讨论主题。 form1.html是一个包含HTML组件的HTML文件,Pro......
阅读全文
  • 08月
  • 19日
综合 ⁄ 共 1258字 评论关闭
  在使用Eclipse编写Java代码时,自动生成的注释信息都是按照预先设置好的格式生成的,例如其中author 的属性值。 我们可以在Eclipse中进行设置自己希望显示的信息。       现在看看如何修改我们的用户名即作者信息:点击Windows->Preferences->Java->Code Style->Code Templates,              然后我们就可以选择右边窗口中的Comments,对应具体的comments选项,我们便可以对具体的注释信息进行编辑设置。 例如我们希望在一个Java文件的开头设置作者作者信息以及日期信息。             选择Types,点击Edit,将......
阅读全文
  • 06月
  • 06日
综合 ⁄ 共 71字 评论关闭
前段时间买了自己的独立blog,打算转移阵地,以后csdn的blog不会再更新了,欢迎来访问我的新blog~: burningcodes.net
阅读全文
  • 03月
  • 30日
综合 ⁄ 共 3450字 评论关闭
    The comparator (CMP) module provides a circuit for comparing two analog input voltages. The comparator circuit is designed to operate across the full range of the supply voltage, known as rail-to-rail operation.     The Analog MUX (ANMUX) provides a circuit for selecting an analog input signal from  eight channels. One signal is provided by the 6-bit digital-to-analog converter (DAC).The mux circuit is designed to operate across the full range of the supply voltage.The 6-bit DAC is 6......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 5875字 评论关闭
一、 Memcached安装和使用: 官网:http://monkey.org/~provos/libevent/ libevent 下载:http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz Memcached 官网:http://www.danga.com/memcached Memcached 下载:http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz 二、 安装 libevent # tar zxvf libevent-1.4.9-stable.tar.gz # cd libevent-1.4.9-stable # ./configure --prefix=/usr # make # make install • 安装 Memcached # tar zxvf memcached-1.2.6.tar.gz # cd memcached-1.2.6 # ./configure --prefix=/u......
阅读全文
  • 01月
  • 27日
综合 ⁄ 共 60字 评论关闭
http://www.ruankao.net/web/baoming/   http://www.bjpta.gov.cn/
阅读全文
  • 01月
  • 21日
综合 ⁄ 共 453字 评论关闭
今天为研发改写了一个巨复杂的sql,因为保密原因就不贴出来了,自觉得意之时开发哥哥抱怨说只能在命令行执行,一旦放程序里就报错(hibernate包装过) 这里给一个简单的sql来做例子: select a.id ,a.d ,if(@od=a.d,@rank:=@rank+1,@rank:=1) num ,@od:=a.d from (select id ,d from number c order by c.id) as a ,(select @od:=null,@rank:=0 ) as b;    程序报错如下: org.hibernate.QueryException: Space is not allowed after parameter prefix ':' 这其实是一个hibernate占位符的问题,解决方式有两种 1,使用createNative......
阅读全文
  • 01月
  • 20日
综合 ⁄ 共 1978字 评论关闭
在老师的建议下,本人决定从现在开始每做一道题都写解题报告,嘿嘿,以前从没写过。下面步入正题: 题目的本质就是要对输入数据进行拓扑排序,需要注意的有一下几点: (1)m组关系,每输入一组都要重新进行一趟拓扑排序 (2)只要找出确定顺序,只需要把剩余数据读完即可,不用再排序,否则可能WA,本人认为这是这道题目的一个bug (3)存在不确定的顺序时,仍然需要判断是否存在环,如果存在环,则输出矛盾。 下面给出源代码: #include <iostream>#include <string>#include <memory.h>using namespace std;......
阅读全文
  • 01月
  • 14日
综合 ⁄ 共 1435字 评论关闭
Colored Sticks http://poj.org/problem?id=2513 Description You are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks in a straight line such that the colors of the endpoints that touch are of the same color? Input Input is a sequence of lines, each line contains two words, separated by spaces, giving the colors of the endpoints of one stick. A word is a sequence of lowercase letters no longer than 10 characters......
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 2204字 评论关闭
  Not so Mobile  Before being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. This kind of mobile is usually found hanging over cradles of small babies. The figure illustrates a simple mobile. It is just a wire, suspended by a string, with an object on each side. It can also be seen as a kind of lever with the fulcrum on the point where the string ties the wire. From the lever principle we know that to balance a......
阅读全文