VC 中音樂最完美的實現 想在程序中播放mp3,wma,wav等所有格式的音樂文件嗎?網上這樣的介紹真是少!!這是一個封裝了音樂的各種操作,比如音量調節,進度調節,的類。包 含兩個類,CMusic,CSound。分別在文件music.h,music.cpp,sound.h,sound.cpp。
上傳時間: 2014-08-12
上傳用戶:xiaohuanhuan
完成一個FIR數字濾波器的設計。要求: 1、 基于直接型和分布式兩種算法。 2、 輸入數據寬度為8位,輸出數據寬度為16位。 3、 濾波器的階數為16階,抽頭系數分別為h[0]=h[15]=0000,h[1]=h[14]=0065,h[2]=h[13]=018F,h[3]=h[12]=035A,h[4]=h[11]=0579,h[5]=h[10]=078E,h[6]=h[9]=0935,h[7]=h[8]=0A1F。
上傳時間: 2013-11-28
上傳用戶:duoshen1989
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
數據結構(嚴慰敏)配套純c代碼實驗十 typedef int InfoType // 定義其它數據項的類型 typedef int KeyType // 定義RedType類型的關鍵字為整型 struct RedType // 記錄類型(同c10-1.h) { KeyType key // 關鍵字項 InfoType otherinfo // 其它數據項 } typedef char KeysType // 定義關鍵字類型為字符型 #include"c1.h" #include"c10-3.h" void InitList(SLList &L,RedType D[],int n) { // 初始化靜態鏈表L(把數組D中的數據存于L中) char c[MAX_NUM_OF_KEY],c1[MAX_NUM_OF_KEY] int i,j,max=D[0].key //
標簽: typedef int InfoType KeyType
上傳時間: 2016-03-03
上傳用戶:2404
rt12864m樣例程序,管腳號 管腳名稱 電平 管腳功能描述 1 VSS 0V 電源地 2 VCC +5V 電源正 3 V0 - 對比度(亮度)調整 4 RS(CS) H/L RS="H",表示DB7--DB0為顯示數據 4 RS(CS) H/L RS="L",表示DB7--DB0為顯示指令數據 5 R/W(SID) H/L R/W="H",E="H",數據被讀到DB7--DB0 5 R/W(SID) H/L R/W="L",E="H→L", DB7--DB0的數據被寫到IR或DR 6 E(SCLK) H/L 使能信號 7 DB0 H/L 三態數據線 8 DB1 H/L 三態數據線 9 DB2 H/L 三態數據線 10 DB3 H/L 三態數據線 11 DB4 H/L 三態數據線 12 DB5 H/L 三態數據線 13 DB6 H/L 三態數據線 14 DB7 H/L 三態數據線 15 PSB H/L H:8位或4位并口方式,L:串口方式(見注釋1) 16 NC - 空腳 17 /RESET H/L 復位端,低電平有效(見注釋2) 18 VOUT - LCD驅動電壓輸出端 19 A VDD 背光源正端(+5V)(見注釋3) 20 K VSS 背光源負端(見注釋3)
上傳時間: 2016-04-17
上傳用戶:xhz1993
非常適合內嵌式mp3播放,例如控制臺!注意看壓縮包里readme.doc 詳細過程,在ARM及MIPS下通過 新建一個 wce application,選擇 a simple windows ce application 在 1.tool->options->directories>include files里包含必要的頭文件 D:\WINCE500\pubilc\directx\SDK\INC D:\WINCE500\pubilc\common\SDK\INC D:\WINCE500\pubilc\common\OAK\INC D:\WINCE500\pubilc\common\DDK\INC 2. >Library files D:\WINCE500\PUBLIC\DIRECTX\SDK\LIB\MIPSII\RETAIL D:\WINCE500\PUBLIC\COMMON\SDK\LIB\MIPSII\RETAIL D:\WINCE500\PUBLIC\COMMON\OAK\LIB\MIPSII\RETAIL 3.可能要在Project->Settings->link的object/library modules 加入 commctrl.lib coredll.lib ole32.lib oleaut32.lib uuid.lib strmiids.lib newres.h play.cpp play.vcw resource.h StdAfx.cpp StdAfx.h 下面為播放源碼 #include "stdafx.h" #include<dshow.h> #include<streams.h> .......其實編譯時的 object/library modules 只要看 sourse 文件包含哪個dll,或lib 就行
標簽: application windows readme simple
上傳時間: 2016-05-05
上傳用戶:ynsnjs
由三星的2442修改而來,正確引導eboot,請注意用三星公版的硬件配置,具體可以參考QQ2440,因為我在些平臺上跑過,具體操作 1.target settings : post-linker:選擇為 ARM fromELF 2.ARM assembler與 ARM c Compiler 的 architecture or processor 選擇為:ARM920T 3.ARM linker的 output:RO base為 0x00000000 (當仿真時為:0x30000000),layout的 object/sysmbol:為2440init.o section:Init 4.ARM fromELF 的 output:format:plain binary , output file name:nboot.bin 下面為全部源碼,注意用ADS編譯 2442addr.h 2442addr.inc 2442init.s 2442lib.c 2442lib.h 2442loader-1208.c 2442slib.h 2442slib.s Def.h k9s1208_s.s Memcfg.inc Nand.h Nand_mini.c Option.h Option.inc
標簽: post-linker settings target eboot
上傳時間: 2016-05-06
上傳用戶:moshushi0009
wince 自帶的DB數據庫編譯,由CEDBUse修改下,主要是修改了編譯通不過,通過后操作不正常,還有驗證在MIPS和ARM分別完成數據庫操作(增加,刪除,修改) 一開始本人以為自帶的數據庫只支持四列,原來不是指這個意思而是指4種索引!所以在本源碼里已經在表里加入了五列數據! 主要包含文件: CEDBUseDlg.cpp CEDBUseDlg.h StudentInputDlg.cpp StudentInputDlg.h CEDBUse.cpp CEDBUse.h 注意與原版不同的 //memset(pProps,0,LocalSize(pProps)) 最被注釋掉 因為第二次分配內存時會導致本程序出錯,注釋掉不影響操作
上傳時間: 2014-01-08
上傳用戶:liuchee
Digital Signature Algorithm (DSA)是Schnorr和ElGamal簽名算法的變種,被美國NIST作為DSS(DigitalSignature Standard)。算法中應用了下述參數: p:L bits長的素數。L是64的倍數,范圍是512到1024; q:p - 1的160bits的素因子; g:g = h^((p-1)/q) mod p,h滿足h < p - 1, h^((p-1)/q) mod p > 1; x:x < q,x為私鑰 ; y:y = g^x mod p ,( p, q, g, y )為公鑰; H( x ):One-Way Hash函數。DSS中選用SHA( Secure Hash Algorithm )。 p, q, g可由一組用戶共享,但在實際應用中,使用公共模數可能會帶來一定的威脅。簽名及驗證協議如下: 1. P產生隨機數k,k < q; 2. P計算 r = ( g^k mod p ) mod q s = ( k^(-1) (H(m) + xr)) mod q 簽名結果是( m, r, s )。 3. 驗證時計算 w = s^(-1)mod q u1 = ( H( m ) * w ) mod q u2 = ( r * w ) mod q v = (( g^u1 * y^u2 ) mod p ) mod q 若v = r,則認為簽名有效。 DSA是基于整數有限域離散對數難題的,其安全性與RSA相比差不多。DSA的一個重要特點是兩個素數公開,這樣,當使用別人的p和q時,即使不知道私鑰,你也能確認它們是否是隨機產生的,還是作了手腳。RSA算法卻作不到。
標簽: Algorithm Signature Digital Schnorr
上傳時間: 2014-01-01
上傳用戶:qq521
簡單最短尋道跟電梯算法,用C++編譯 #include "stdio.h" #include "stdlib.h" #include <iostream.h>
上傳時間: 2016-08-23
上傳用戶:cc1015285075