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)
標(biāo)簽: prepareStatement ordernumber dayofmoney datetime
上傳時(shí)間: 2013-12-14
上傳用戶(hù):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
標(biāo)簽: chebysheve detection abnormal function
上傳時(shí)間: 2013-11-30
上傳用戶(hù):13517191407
DDR SDRAM控制器的VHDL源代碼,含詳細(xì)設(shè)計(jì)文檔。 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.
上傳時(shí)間: 2014-11-01
上傳用戶(hù):l254587896
這是用于線(xiàn)性方程組求解的ILUK預(yù)處理算法的實(shí)現(xiàn)。在VC++編譯通過(guò)。矩陣采用壓縮稀疏行格式存儲(chǔ)(CSR),采用如下結(jié)構(gòu)存儲(chǔ):struct Distmatrix {double **ma int **ja,dimension,*nnzrow } 很容易移植到自己定義數(shù)值計(jì)算軟件包中。經(jīng)本人測(cè)試計(jì)算效率比Fortran寫(xiě)的高很多(比如與Sparskit2比較)。
標(biāo)簽: ILUK CSR VC 線(xiàn)性
上傳時(shí)間: 2016-12-15
上傳用戶(hù):奇奇奔奔
1. 下列說(shuō)法正確的是 ( ) A. Java語(yǔ)言不區(qū)分大小寫(xiě) B. Java程序以類(lèi)為基本單位 C. JVM為Java虛擬機(jī)JVM的英文縮寫(xiě) D. 運(yùn)行Java程序需要先安裝JDK 2. 下列說(shuō)法中錯(cuò)誤的是 ( ) A. Java語(yǔ)言是編譯執(zhí)行的 B. Java中使用了多進(jìn)程技術(shù) C. Java的單行注視以//開(kāi)頭 D. Java語(yǔ)言具有很高的安全性 3. 下面不屬于Java語(yǔ)言特點(diǎn)的一項(xiàng)是( ) A. 安全性 B. 分布式 C. 移植性 D. 編譯執(zhí)行 4. 下列語(yǔ)句中,正確的項(xiàng)是 ( ) A . int $e,a,b=10 B. char c,d=’a’ C. float e=0.0d D. double c=0.0f
上傳時(shí)間: 2017-01-04
上傳用戶(hù):netwolf
#include "iostream.h" #include "iomanip.h" #define N 20 //學(xué)習(xí)樣本個(gè)數(shù) #define IN 1 //輸入層神經(jīng)元數(shù)目 #define HN 8 //隱層神經(jīng)元數(shù)目 #define ON 1 //輸出層神經(jīng)元數(shù)目 double P[IN] //單個(gè)樣本輸入數(shù)據(jù) double T[ON] //單個(gè)樣本教師數(shù)據(jù) double W[HN][IN] //輸入層至隱層權(quán)值 double V[ON][HN] //隱層至輸出層權(quán)值 double X[HN] //隱層的輸入 double Y[ON] //輸出層的輸入 double H[HN] //隱層的輸出
標(biāo)簽: define include iostream iomanip
上傳時(shí)間: 2014-01-01
上傳用戶(hù):凌云御清風(fēng)
1. 統(tǒng)計(jì)工資 設(shè)計(jì)要求: (1) 使用結(jié)構(gòu)數(shù)組設(shè)計(jì)一個(gè)公司職員的數(shù)據(jù)結(jié)構(gòu),使用下述的結(jié)構(gòu)定義: struct employee{ int age char name[15] double salary } (2) 在主函數(shù)里構(gòu)造一個(gè)數(shù)組company,用來(lái)存放職工信息。 (3) 設(shè)計(jì)update函數(shù),用來(lái)對(duì)company中指定職員的信息進(jìn)行更改。要求先按照name查詢(xún)到相應(yīng)的職員,然后修改并保存。 (4) 設(shè)計(jì)一個(gè)read函數(shù),用來(lái)向company中錄入職員信息,并顯示結(jié)果。 (5) 編寫(xiě)mean函數(shù)求平均工資。 應(yīng)該能對(duì)全體職工或大于某一年齡的職工工資求和并計(jì)算平均值。 (6) 編寫(xiě)total函數(shù)對(duì)工資求和。 應(yīng)該能對(duì)全體職工或某一年齡段職工的工資求和。
標(biāo)簽: 數(shù)組 數(shù)據(jù)結(jié)構(gòu)
上傳時(shí)間: 2014-01-23
上傳用戶(hù):colinal
本書(shū)是所隨帶的VC++和BC++數(shù)值分析類(lèi)庫(kù)光盤(pán)的使用手冊(cè)。此VC++和BC++數(shù)值分析類(lèi)庫(kù)涵蓋了數(shù)值分析領(lǐng)域中大部分常見(jiàn)算法,還包括線(xiàn)性和非線(xiàn)性最優(yōu)化問(wèn)題的多種算法以及概率統(tǒng)計(jì)中的一些基本算法。此類(lèi)庫(kù)中將矩陣和向量當(dāng)成如char,int,double一樣的基本變量類(lèi)型,為矩陣和向量提供了幾乎是隨心所欲的操作函數(shù)。因此,可以在此數(shù)值類(lèi)庫(kù)的基礎(chǔ)上進(jìn)行二次開(kāi)發(fā)。類(lèi)庫(kù)的各項(xiàng)功能均經(jīng)過(guò)嚴(yán)格的檢測(cè),并與MATLAB作了比較,結(jié)果準(zhǔn)確無(wú)誤,效率不相上下。書(shū)中以菜單的方式對(duì)數(shù)值分析類(lèi)庫(kù)的每項(xiàng)功能作了詳盡的解釋?zhuān)o出了調(diào)用方法的示例,對(duì)某些算法還提供了相應(yīng)的數(shù)學(xué)背景知識(shí)。 如果你經(jīng)常需要使用計(jì)算機(jī)求解科學(xué)與工程中的數(shù)值計(jì)算問(wèn)題,特別是希望使用VC++或BC++做出獨(dú)立于MATLAB的應(yīng)用軟件,本類(lèi)庫(kù)是不錯(cuò)的選擇。
標(biāo)簽: VC BC 數(shù)值分析 光盤(pán)
上傳時(shí)間: 2014-07-28
上傳用戶(hù):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.
標(biāo)簽: development developing prototypi provides
上傳時(shí)間: 2017-01-29
上傳用戶(hù):jjj0202
自然對(duì)界,Win32平臺(tái)下的微軟C編譯器(cl.exe for 80x86)在默認(rèn)情況下采用如下的對(duì)齊規(guī)則:任何基本數(shù)據(jù)類(lèi)型T的對(duì)齊模數(shù)就是T的大小,即sizeof(T)。比如對(duì)于double類(lèi)型(8字節(jié)),
標(biāo)簽:
上傳時(shí)間: 2013-12-14
上傳用戶(hù):vodssv
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1