一个小的telnet程序与大家共享,/* 本程序支持如一些参数: * --host IP地址 或者 -H IP地址 * --port 端口 或者 -P 端口 * --back 监听数量 或者 -B 监听数量 * --dir 服务默认目录 或者 -D 服务默认目录 * --log 日志存放路径 或者 -L 日志存放路径 * --daemon 使程序进入后台运行模式 */
上传时间: 2016-11-20
上传用户:515414293
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
算术编码是把一个信源表示为实轴上0和1之间的一个区间,信源集合中的每一个元素都用来缩短这个区间。 算术编码的过程如下: (1)设定编码区间的高段为h,编码区间的长度为g,EndC为编码字符分配的高段,StartC 为字符分配区间的低端。 (2)根据有限的信源估算出各元素的概率。 (3)杜宇编码的元素A1,根据(2)估算的概率和区间,计算出该元素编码后的新的l,和h。
上传时间: 2014-01-26
上传用户:aysyzxzm
linux下led数字显示驱动程序,l inux下led数字显示驱动程序
上传时间: 2013-12-29
上传用户:lixinxiang
盘覆盖问题:在一个2k×2k 个方格组成的棋盘中,恰有一个方格与其它方格不同,称该方格为一特殊方格,且称该棋盘为一特殊棋盘。在棋盘覆盖问题中,要用图示的4种不同形态的L型骨牌覆盖给定的特殊棋盘上除特殊方格以外的所有方格,且任何2个L型骨牌不得重叠覆盖。
标签:
上传时间: 2016-12-08
上传用户:气温达上千万的
Problem B:Longest Ordered Subsequence A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1, ai2, ..., aiK), where 1 <= i1 < i2 < ... < iK <= N. For example, sequence (1, 7, 3, 5, 9, 4, 8) has ordered subsequences, e. g., (1, 7), (3, 4, 8) and many others. All longest ordered subsequences are of length 4, e. g., (1, 3, 5, 8).
标签: Subsequence sequence Problem Longest
上传时间: 2016-12-08
上传用户:busterman
This MATLAB code simulates the effects of amplitude variation between modulators for the wireless LO.该程序分析由于本振信号幅度动态变化对调制器的影响。
标签: modulators amplitude simulates the
上传时间: 2016-12-09
上传用户:pinksun9
这是书上的代码,基于Visual C++和L系统的自然景物模拟。供大家参考
标签: 代码
上传时间: 2013-12-13
上传用户:chenbhdt
判断文法类型,判断为L(0)或L(1) 很好用,好懂
标签:
上传时间: 2016-12-14
上传用户:ynsnjs
为联众台球游戏开发,操作简单,先用F2定位台球桌,即用鼠标右上方的圆圈套住台球界面左下方的十字架,再按F2。击球时,用圆圈套住目标球,在按ALT+L,即显示击球点。命中率95%。
标签:
上传时间: 2014-01-27
上传用户:yyq123456789