CRC16算法的Java實現,使用方法如下: CRC16 crc16 = new CRC16() byte[] b = new byte[] { // (byte) 0xF0,(byte)0xF0,(byte)0xF0,(byte)0x72 (byte) 0x2C, (byte) 0x00, (byte) 0xFF, (byte) 0xFE, (byte) 0xFE, (byte) 0x04, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 } for (int k = 0 k < b.length k++) { crc16.update(b[k]) } System.out.println(integer.toHexString(crc16.getValue())) System.out.println(integer.toHexString(b.length))
上傳時間: 2014-12-20
上傳用戶:ve3344
本程序執行后,創建一個能夠加載文字的面板,文字的內容是本地主機的IP地址的動態顯示。跑馬燈文字的大小和跑馬燈文字顯示的速度都可以在GatutTextCrawler.html文件里通過參數進行設置。 編程思路:首先,本練習因為要制作偵測IP的跑馬燈的實例,所以首先要生成程序界面:在函數public void init()中,首先通過語句s = getParameter("fontSize")和fontSize = s != null ? integer.valueOf(s).intValue() : 12設置文字字體大小,然后進行字體設置和顯示速度設置,最后通過語句msgText = getParameter("preText")得到GatutTextCrawler.html文件中的字符串值。然后,得到主機IP地址,首先通過函數adds = InetAddress.getLocalHost().toString()得到主機的IP地址,最后在更新屏幕函數public void update(Graphics g)中通過實現跑馬燈效果。
標簽: 程序
上傳時間: 2016-06-06
上傳用戶:miaochun888
一個24點自動求解程序,用了很多花哨的界面控件。只要看看核心的代碼就行了(Unit1.pas中的 calc(i:integer)、print(i:integer) 過程)。可以把24改為其它的整數。
上傳時間: 2013-12-22
上傳用戶:zhouli
構造一個簡單程序設計語言的詞法分析器,要求: 1) 含有保留字program, begin, end, var, integer, if, then, else, do, while. 2) 標識符和無符號的整常數,其中保留字和標識符不區分大小寫. 3) 含有界符和運算符如下:+,-, (, ), =, >, <, , :, :=.,,。 4) 輸出二元組。
上傳時間: 2014-01-04
上傳用戶:離殤
密碼算法程序包miracl contains all the source code for the latest version of MIRACL: a Multiprecision integer and Rational Arithmetic C/C++ library.
標簽: Multiprecision the contains version
上傳時間: 2016-07-08
上傳用戶:xinyuzhiqiwuwu
多目標遺傳算法程序 to run Demo files, is to run SGALAB_demo_*.m what s new: 1) Multiple-Objective GAs VEGA NSGA NPGA MOGA 2) More TSP mutation and Crossover methods PMX OX CX EAX Boolmatrix 3) More selection methods Truncation tornament stochastic 4) mutation methods binary single point int/real single point 5) encoding/decoding methods binary integer/real messy gray DNA permuation to fix the plot bugs for 4001 , download this file and replace old files.
標簽: Multiple-Objective SGALAB_demo run files
上傳時間: 2013-12-21
上傳用戶:mhp0114
This programme is to control DC motor in a certain speed using PWM. The target speed is "r", it is the speed in 1s. The sample rate is 0.1s, so the actual speed target is "rc"=r/10. The "r" and "rc" are integer, and the range of "r" is from 50 to 100. Keep rc=r/10!!! The array "speed1" and "speed2" are the control result, in 0.1s and 1s. The length of "speed1" is 2400, and "speed2" is 240. The "pw" and "nw" are the parameters of PWM. The test will last 4 min.
標簽: speed programme is control
上傳時間: 2014-11-22
上傳用戶:jyycc
DESCRIPTION This function initializes the pointers in the _pid structure to the process variable and the setpoint. *pv and *sp are integer pointers.
標簽: the DESCRIPTION initializes structure
上傳時間: 2014-01-15
上傳用戶:邶刖
a Java program that reads in the following values from the standard input device (i.e. Keyboard) and writes its result on the standard output device (i.e. Console/Monitor): Inputs: A: the loan amount in dollars and cents (e.g. 150000.00). r: the net annual interest rate, expressed as an integer (e.g. 10 which means 10%) Y: the number of whole remaining years (for repayment) M: the number of remaining months Output: The program should calculate and output the amount of monthly repayments in dollars and cents as single value (e.g. $840.55)
標簽: i.e. following the Keyboard
上傳時間: 2013-12-15
上傳用戶:米卡
“軟件限時注冊”控件(TShareRegist)功能說明: 1、只要將該控件加入主窗體,使Action屬性設為true,再設置其它屬性,你的軟件就有限時注冊的功能了,只要你牢記三個密鑰,并加上給你的算號軟件(RegObject_Admin.exe)你就可以無敵天下了。 2、控件使用目前最嚴嚴謹的加密算法,5級加密。是破解成為不可能,可以放心使用。 3、請記住,設計不同的軟件,給三個不同的密鑰,該控件可以讓你享用終生。 控件屬性說明: Action:boolean 是否開啟限時注冊功能 ShareDays:integer 免費使用的天數 ShareCount:integer 免費使用的次數 RootKey:string 注冊表的主根 EncrypKey1:string 密鑰1 EncrypKey2:string 密鑰2 EncrypKey3:string 密鑰3 Money:string 注冊費用 ActiveMenuItem:TMenuItem 激活注冊窗口的菜單項(點擊此菜單項便能彈出“注冊窗體”) ActiveButton:TButton 激活注冊窗口的按鈕(同上) Verion:string 控件版本號,只讀的
標簽: TShareRegist 控件 軟件
上傳時間: 2013-12-25
上傳用戶:fredguo