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
// chebysheve outlier detection // this function is used to detect the abnormal value among a set of data // input: // delta: a set of data // flag: discribe which data is already known as outlier // p: restrict level // output: // double[] door : byyond which the data may be considered as a outlier // door[0]: the upperdoor // door[1]: the lowerdoor
標簽: chebysheve detection abnormal function
上傳時間: 2013-11-30
上傳用戶:13517191407
DDR SDRAM控制器的VHDL源代碼,含詳細設計文檔。 The DDR, DCM, and SelectI/O™ features in the Virtex™ -II architecture make it the perfect choice for implementing a controller of a Double Data Rate (DDR) SDRAM. The Digital Clock Manager (DCM) provides the required Delay Locked Loop (DLL), Digital Phase Shift (DPS), and Digital Frequency Synthesis (DFS) functions. This application note describes a controller design for a 16-bit DDR SDRAM. The application note and reference design are enhanced versions of XAPP200 targeted to the Virtex-II series of FPGAs. At a clock rate of 133 MHz, 16-bit data changes at both clock edges. The reference design is fully synthesizable and achieves 133 MHz performance with automatic place and route tools.
上傳時間: 2014-11-01
上傳用戶:l254587896
這是用于線性方程組求解的ILUK預處理算法的實現。在VC++編譯通過。矩陣采用壓縮稀疏行格式存儲(CSR),采用如下結構存儲:struct Distmatrix {double **ma int **ja,dimension,*nnzrow } 很容易移植到自己定義數值計算軟件包中。經本人測試計算效率比Fortran寫的高很多(比如與Sparskit2比較)。
上傳時間: 2016-12-15
上傳用戶:奇奇奔奔
1. 下列說法正確的是 ( ) A. Java語言不區分大小寫 B. Java程序以類為基本單位 C. JVM為Java虛擬機JVM的英文縮寫 D. 運行Java程序需要先安裝JDK 2. 下列說法中錯誤的是 ( ) A. Java語言是編譯執行的 B. Java中使用了多進程技術 C. Java的單行注視以//開頭 D. Java語言具有很高的安全性 3. 下面不屬于Java語言特點的一項是( ) A. 安全性 B. 分布式 C. 移植性 D. 編譯執行 4. 下列語句中,正確的項是 ( ) A . int $e,a,b=10 B. char c,d=’a’ C. float e=0.0d D. double c=0.0f
上傳時間: 2017-01-04
上傳用戶:netwolf
#include "iostream.h" #include "iomanip.h" #define N 20 //學習樣本個數 #define IN 1 //輸入層神經元數目 #define HN 8 //隱層神經元數目 #define ON 1 //輸出層神經元數目 double P[IN] //單個樣本輸入數據 double T[ON] //單個樣本教師數據 double W[HN][IN] //輸入層至隱層權值 double V[ON][HN] //隱層至輸出層權值 double X[HN] //隱層的輸入 double Y[ON] //輸出層的輸入 double H[HN] //隱層的輸出
標簽: define include iostream iomanip
上傳時間: 2014-01-01
上傳用戶:凌云御清風
1. 統計工資 設計要求: (1) 使用結構數組設計一個公司職員的數據結構,使用下述的結構定義: struct employee{ int age char name[15] double salary } (2) 在主函數里構造一個數組company,用來存放職工信息。 (3) 設計update函數,用來對company中指定職員的信息進行更改。要求先按照name查詢到相應的職員,然后修改并保存。 (4) 設計一個read函數,用來向company中錄入職員信息,并顯示結果。 (5) 編寫mean函數求平均工資。 應該能對全體職工或大于某一年齡的職工工資求和并計算平均值。 (6) 編寫total函數對工資求和。 應該能對全體職工或某一年齡段職工的工資求和。
上傳時間: 2014-01-23
上傳用戶:colinal
本書是所隨帶的VC++和BC++數值分析類庫光盤的使用手冊。此VC++和BC++數值分析類庫涵蓋了數值分析領域中大部分常見算法,還包括線性和非線性最優化問題的多種算法以及概率統計中的一些基本算法。此類庫中將矩陣和向量當成如char,int,double一樣的基本變量類型,為矩陣和向量提供了幾乎是隨心所欲的操作函數。因此,可以在此數值類庫的基礎上進行二次開發。類庫的各項功能均經過嚴格的檢測,并與MATLAB作了比較,結果準確無誤,效率不相上下。書中以菜單的方式對數值分析類庫的每項功能作了詳盡的解釋,給出了調用方法的示例,對某些算法還提供了相應的數學背景知識。 如果你經常需要使用計算機求解科學與工程中的數值計算問題,特別是希望使用VC++或BC++做出獨立于MATLAB的應用軟件,本類庫是不錯的選擇。
上傳時間: 2014-07-28
上傳用戶:yiwen213
The Cyclone® III PCI development board provides a hardware platform for developing and prototyping low-power, high-performance, logic-intensive PCI-based designs. The board provides a high-density of the memory to facilitate the design and development of FPGA designs which need huge memory storage, and also includes Low-Voltage Differential Signaling (LVDS) interface of the High-Speed Terasic Connectors (HSTCs) for extra high-speed interface application.
標簽: development developing prototypi provides
上傳時間: 2017-01-29
上傳用戶:jjj0202
自然對界,Win32平臺下的微軟C編譯器(cl.exe for 80x86)在默認情況下采用如下的對齊規則:任何基本數據類型T的對齊模數就是T的大小,即sizeof(T)。比如對于double類型(8字節),
標簽:
上傳時間: 2013-12-14
上傳用戶:vodssv