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

Rs-Codes

  • pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernu

    pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernumber= "+ cdName + " ") rs=pstmt.executeQuery() if(rs!=null && rs.next()){ String datetime = rs.getString(2) java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat ("yyyy-MM-dd") Date date = new Date() String date1=formatter.format(date) ParsePosition pos = new ParsePosition(0) ParsePosition pos1 = new ParsePosition(0) Date dt1=formatter.parse(datetime,pos) Date dt2=formatter.parse(date1,pos1) Long l = (dt2.getTime()-dt1.getTime())/(3600*24*1000)+1 double price = rs.getDouble(3) double dayofmoney=rs.getDouble(4) double dayofmoneybuy=dayofmoney*l double otherMoney = price-dayofmoneybuy request.setAttribute("price", price) request.setAttribute("l", l) request.setAttribute("dayofmoney", dayofmoneybuy) request.setAttribute("otherMoney", otherMoney)

    标签: prepareStatement ordernumber dayofmoney datetime

    上传时间: 2013-12-14

    上传用户:zsjinju

  • 数字音乐盒 (1) 硬件电路中用P1.0~P1.7控制按键

    数字音乐盒 (1) 硬件电路中用P1.0~P1.7控制按键,其中P1.0~P1.3扫描行,P1.4~P1.7扫描列。 (2) 用P0.0~P0.7,P2.0~P2.7控制LED,其中P0.0~P0.7控制七段码a,b,c,d,e,f,g,用P2.0~P2.7为数码管位选信号。 (3) 用,P2.0~P2.2作为LCD的RS,R/W,E的控制信号。用P0.0~P0.7作为LCD的D0~D7的控制信号。 (4) 用P3.7口控制蜂鸣器(J2,J4断开,J3短接)。 (5) 电路为12MHZ晶振频率工作,起振电路中C1,C2均为30pf。

    标签: 1.0 1.7 数字 控制

    上传时间: 2016-12-03

    上传用户:ruixue198909

  • 1993 年两位法国教授Berrou、Glavieux 和他们的缅甸籍博士生Thitimajshima 在ICC 会议上发表的Near Shannon limit error-correcting c

    1993 年两位法国教授Berrou、Glavieux 和他们的缅甸籍博士生Thitimajshima 在ICC 会议上发表的Near Shannon limit error-correcting coding and decoding: Turbo codes”,

    标签: error-correcting Thitimajshima Glavieux Shannon

    上传时间: 2016-12-06

    上传用户:Avoid98

  • 《移动位置—视频监控系统》应是在综合应用3S技术(卫星定位技术GPS

    《移动位置—视频监控系统》应是在综合应用3S技术(卫星定位技术GPS,遥感技术RS,地理信息系统技术GIS)、移动通讯技术、计算机网络技术、地图数据服务技术、多媒体数据通讯技术基础上,以服务于资源优化配置、紧急预案分析、中心调度指挥为目的,建立的一套具有移动人员(车辆)交互定位、人员(车辆)移动中邻近地物定位查询、多目标间多媒体数据(文字/照片/视频/语音)即时交互、多目标多窗口轨迹与视频监控、路径选择与语音导航等多项功能的“移动多媒体监控平台”。

    标签: GPS 移动 卫星 定位技术

    上传时间: 2014-01-13

    上传用户:lizhen9880

  • 基于8051的网络远程控制系统 本项目通过网络实现远程监控

    基于8051的网络远程控制系统 本项目通过网络实现远程监控,远程的电脑具有固定IP,在远程电脑的COM1的串行传输端口接一块8051控制板,然后以RS-232传输方式传输数据到8051的电路板,8051控制板上采用固态继电器(Solid State Relay)连接到电子产品,从而可以远程控制这些电子产品何时开启或关闭。8051控制板上还可以每分钟测量一次当前温度,再传输到远程监控端。

    标签: 8051 网络远程 控制系统 网络

    上传时间: 2016-12-21

    上传用户:凌云御清风

  • This package provides encoders and fast Viterbi decoders for the NASA standard rate 1/2 and rate 1/

    This package provides encoders and fast Viterbi decoders for the NASA standard rate 1/2 and rate 1/3 constraint length 7 convolutional codes.

    标签: rate and encoders decoders

    上传时间: 2013-12-18

    上传用户:彭玖华

  • 44b0公版的测试程序

    44b0公版的测试程序, ******************************************************* * NAME : 44BINIT.S * * Version : 10.JAn.2003 * * Description: * * C start up codes * * Configure memory, Initialize ISR ,stacks * * Initialize C-variables * * Fill zeros into zero-initialized C-variables *

    标签: 44b0 测试程序

    上传时间: 2013-12-22

    上传用户:teddysha

  • The combinatorial core of the OVSF code assignment problem that arises in UMTS is to assign some no

    The combinatorial core of the OVSF code assignment problem that arises in UMTS is to assign some nodes of a complete binary tree of height h (the code tree) to n simultaneous connections, such that no two assigned nodes (codes) are on the same root-to-leaf path. Each connection requires a code on a specified level. The code can change over time as long as it is still on the same level. We consider the one-step code assignment problem: Given an assignment, move the minimum number of codes to serve a new request. Minn and Siu proposed the so-called DCAalgorithm to solve the problem optimally. We show that DCA does not always return an optimal solution, and that the problem is NP-hard. We give an exact nO(h)-time algorithm, and a polynomial time greedy algorithm that achieves approximation ratio Θ(h). Finally, we consider the online code assignment problem for which we derive several results

    标签: combinatorial assignment problem arises

    上传时间: 2014-01-19

    上传用户:BIBI

  • 利用两台计算机

    利用两台计算机,通过它们的COM口及三线接法的RS-232通讯线,实现两台计算机的物理通讯连接。

    标签: 计算机

    上传时间: 2017-02-07

    上传用户:ANRAN

  • 作为上世纪80年代早期批准的一个平衡传输标准

    作为上世纪80年代早期批准的一个平衡传输标准,RS-485似乎已成为工业界永不过时的接口标准。关于它的文献有很多,但对于很少接触接口设计的系统工程师而言,如此海量的文献就有些让人吃不消了。 本文旨在讨论RS-485标准的主要内容,为初接触它的设计师提供入门指南。研究文末参考的一些附加应用笔记可进一步帮助设计师在最短的时间内完成一套可靠的数传设计。

    标签: 传输 标准

    上传时间: 2017-02-15

    上传用户:徐孺