虫虫首页|资源下载|资源专辑|精品软件
登录|注册

false

  • JSP中session的建立和使用

    JSP中session的建立和使用,要点:如果只想得到会话中已经存在的信息,可以使用getSession(false)。否则用其他方法,会创建新会话,浪费资源。

    标签: session JSP

    上传时间: 2017-02-05

    上传用户:manking0408

  • public class CircleMenuCanvas extends Canvas implements Runnable{ double pi = Math.PI public fi

    public class CircleMenuCanvas extends Canvas implements Runnable{ double pi = Math.PI public final int MENURIGHT = 1 public final int MENULEFT = 0 Image menuImage[] = new Image[6] int []jiaodu = {330,30,90,150,210,270} String menuName[] = {"新游戏","继续游戏","游戏设置","高分榜","游戏帮助","退出游戏"} int x = getWidth()/2 int y = getHeight()/2 int count = 0 int local int index = 0 Font f boolean running = false /** * 构造方法 * */

    标签: public CircleMenuCanvas implements Runnable

    上传时间: 2014-01-08

    上传用户:zhaoq123

  • The Bit Array structure provides a compacted arrays of Booleans, with one bit for each Boolean value

    The Bit Array structure provides a compacted arrays of Booleans, with one bit for each Boolean value. A 0 [1] bit corresponds to the Boolean value false [true], respectively. We can look at a stream of bytes as a stream of bits each byte contains 8 bits, so any n bytes hold n*8 bits. And the operation to manipulate this stream or bits array is so easy, jut read or change the bits state or make any Boolean operation on the whole bits array, like 鈥楢ND鈥? 鈥極R鈥? or 鈥榅OR鈥?

    标签: structure compacted Booleans provides

    上传时间: 2014-01-14

    上传用户:坏天使kk

  • Use a one-dimensional array of primitive type boolean to represent the seating chart of the plane.

    Use a one-dimensional array of primitive type boolean to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As each seat is assigned, set the corresponding elements of the array to true to indicate that the seat is no longer available.

    标签: one-dimensional primitive represent the

    上传时间: 2013-12-22

    上传用户:zhichenglu

  • procedure senddata var i:integer commflg : Boolean begin commflg:=true for i:=1

    procedure senddata var i:integer commflg : Boolean begin commflg:=true for i:=1 to 8 do begin if not fcomm comml writecommdata(sendbutter,i) then begin Commflg=false break end end end (4) 接收数据 在编写基于串口的计算机工业测控时,通常需要由下位机向PC机发送数据以使PC机了解系统的测试数据或下位机的运行状态,并进而控制下位机的行为。利用Spcomm串口控件接收下位机发送的数据信息的示例代码如下: //事件驱动方式接收数据程序 procedure TForm1.CommlReceiveData(Sender:Tobject Buffer:Pointer bufferLength:Word) var receivedata:array of byte begin sleep(100) //等待100ms,保证接收到所有数据 move(buffef ,receivedata,bufferlength) //将接收缓存区中的数据转移到数组中 …… end (5) 关闭串口 在系统开发中,应注意在不使用串口时应及时关闭串口,释放系统资源,否则可能会影响系统的其它应用。关闭串口的代码如下: procedure TForm1.FormClose ( Sender TObj ect:var Action:TCIoseAction ) begin comml.StopComm end

    标签: commflg procedure senddata integer

    上传时间: 2014-01-26

    上传用户:懒龙1988

  • cppcheck is a static C/C++ code analyzer that checks for memory leaks, mismatching allocation-deallo

    cppcheck is a static C/C++ code analyzer that checks for memory leaks, mismatching allocation-deallocation, buffer overrun, and many more problems. Its goal is to produce no false positives.

    标签: allocation-deallo mismatching cppcheck analyzer

    上传时间: 2013-12-08

    上传用户:Zxcvbnm

  • 签于目前市场上结合Query万能查询的第三方控件

    签于目前市场上结合Query万能查询的第三方控件,适合DELPHI的特别多,如武稀松先生的WNQUERY,但适合CBUILDER的几乎是麟毛凤脚,由于公司产品上需要用到该功能,所以特别花了一天时间编了这个适合CBUILDER6版本的万能查询模块(如有需要亦可提供CBUILDER5的版本),供大家参考使用,改天有时间我会推出该系列的第三方控件,希望大家多提宝贵意见。 功能特点: 1、结合adoQuery(只适合adoQuery),如需支持Query,请另行通知我; 2、结合adoQuery->Fields属性,查询条件可以根据Fields的Visiable属性来定,也就是说Fields->Field[0]->Visiable=false,这时你可以设置属性既可以把这类字段作为查询条件,也可以隐藏这类字段不作为查询条件显示; 3、根据字段类型显示比较值,举例说明:如果你选择的是DateTime字段,那比较值自动改为DateTimePicker,这比武稀松先生的WNQUERY要先进多了; 4、可以单项条件查询也可以多项条件结合查询; 上海同文信息技术有限公司 赵秀江(David) http://www.twsoft.cn Email:mail@twsoft.cn david@twsoft.cn MSN:twsoft@hotmail.com QQ:5281034

    标签: Query 查询 控件

    上传时间: 2013-12-24

    上传用户:yy541071797

  • include <stdio.h> /*标准输入输出定义*/ #include <stdlib.h> /*标准函数库定义*/ #inclu

    include <stdio.h> /*标准输入输出定义*/ #include <stdlib.h> /*标准函数库定义*/ #include <unistd.h> /*Unix标准函数定义*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定义*/ #include <termios.h> /*PPSIX终端控制定义*/ #include <errno.h> /*错误号定义*/ #define TRUE 1 #define false 0 /***@brief 设置串口通信速率 *@

    标签: include stdlib inclu stdio

    上传时间: 2017-05-06

    上传用户:ljt101007

  • 哲学家吃饭问题 当五个人都拿到左手边筷子

    哲学家吃饭问题 当五个人都拿到左手边筷子,都等待拿右手边筷子,则因为谁都不能放下手中的筷子,这样就进入无止境的等待,构成死锁 * 解决方法1:奇数号先拿左边的筷子,偶数号先拿右边的筷子,即相邻两个人先拿其中间夹的筷子,使这个筷子成为临界资源; * 解决方法2:两边的筷子都空闲时,再拿筷子,if(chopstick.flag(n)==false&&chopstick.flag(n 5)==false); * 解决方法3:只允许(n-1)个人同时进餐; * 本程序采用方法1 解决

    标签:

    上传时间: 2017-05-26

    上传用户:zsjzc

  • This program contains the iterative methods of finding solutions of the equation f(x)=0, which are a

    This program contains the iterative methods of finding solutions of the equation f(x)=0, which are also known as the roots of the equation f(x)=0 The methods are: -bisection -false position -newton raphson -secant

    标签: iterative the solutions contains

    上传时间: 2013-12-27

    上传用户:jennyzai