一個(gè)基于GTK+的單詞數(shù)值計(jì)算器,1、 按照規(guī)則計(jì)算單詞的值,如果 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 26個(gè)字母(全部用大寫)的值分別為 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26,如: WINJACK這個(gè)單詞的值就為:W+I+N+J+A+C+K=23+9+14+1+3+11=71% HARDWORK=H+A+R+D+W+O+R+D=8+1+18+4+23+15+18+11=98% LOVE=L+O+V+E=12+15+22+5=54% LUCK=L+U+C+K=12+21+3+11=47% ATTITUDE= A+T+T+I+T+U+D+E=1+20+20+9+20+24+4+5=100% 2、對程序的界面布局參考如下圖所示,在第一個(gè)單行文本框輸入一個(gè)單詞,點(diǎn)擊“計(jì)算”按鈕,按照以上算法計(jì)算出該單詞的值。 3、如果在最下面的單行文本框輸入一個(gè)文件路徑,此文件每行記錄一個(gè)單詞,那么經(jīng)過程序計(jì)算出各個(gè)單詞的值,并把結(jié)果輸出到當(dāng)前目錄下result.txt文件中。如果文件不存在,應(yīng)該提示錯(cuò)誤。
上傳時(shí)間: 2014-01-11
上傳用戶:康郎
In this article, I will explain how to create UDP packets and then send them to a remote server through the Internet using WinPCap for Windows. The code has been tested to work with Windows XP SP2 and Vista SP1 on Linksys routers, and on Toshiba modems connected directly to the Internet. Please note that the code here is very minimalistic, and can be greatly expanded depending on your needs. The reason I use WinPCap in this article is that it solves the issue of Winsock for Windows (XP SP2 and above) not allowing raw UDP packets to be sent (in Linux, you can just use regular sockets). With WinPcap, it is possible to specify your own source IP and source hardware addresses in packets.
標(biāo)簽: article explain packets create
上傳時(shí)間: 2013-12-12
上傳用戶:x4587
mkdosfs - Make DOS file system utilty. I wrote this, partially to complement the dosfsck utility written by Werner Almesberger (who graciously gave me some pointers when I asked for some advice about writing this code), and also to avoid me having to boot DOS just to create data partitions (I use Linux to back up DOS :-) ).
標(biāo)簽: complement partially mkdosfs dosfsck
上傳時(shí)間: 2017-03-01
上傳用戶:gonuiln
【問題描述】 設(shè)計(jì)一個(gè)利用哈夫曼算法的編碼和譯碼系統(tǒng),重復(fù)地顯示并處理以下項(xiàng)目,直到選擇退出為止。 【基本要求】 (1)初始化:鍵盤輸入字符集大小n、n個(gè)字符和n個(gè)權(quán)值,建立哈夫曼樹; (2)編碼:利用建好的哈夫曼樹生成哈夫曼編碼; (3)輸出編碼; (4)設(shè)字符集及頻度如下表: 字符:A B C D E F 頻度:4 9 23 2 17 15 字符:G H I J K 頻度:1 2 3 3 4
上傳時(shí)間: 2017-03-07
上傳用戶:qwe1234
模擬Linux文件系統(tǒng) 在任一OS下,建立一個(gè)大文件,把它假象成一張盤,在其中實(shí)現(xiàn)一個(gè)簡單的模擬Linux文件系統(tǒng)。 1. 在現(xiàn)有機(jī)器硬盤上開辟100M的硬盤空間,作為設(shè)定的硬盤空間。 2. 編寫一管理程序simdisk對此空間進(jìn)行管理,以模擬Linux文件系統(tǒng),要求: (1) 盤塊大小1k (2) 空閑盤塊的管理:Linux位圖法 (3) 結(jié)構(gòu):超級塊, i結(jié)點(diǎn)區(qū), 根目錄區(qū)
標(biāo)簽: Linux 模擬 文件系統(tǒng)
上傳時(shí)間: 2017-03-21
上傳用戶:qq21508895
UART library for x51, can be used with any c cross compiler and can be used for X51 uC. I had used keil.
標(biāo)簽: used for can compiler
上傳時(shí)間: 2014-01-23
上傳用戶:yiwen213
PartiTekSDK.chm is for windows, Unix/Linux and WinCE/WinMobile platform. SDK_Manul_Symbian.pdf is for Sybian platform
標(biāo)簽: SDK_Manul_Symbian PartiTekSDK WinMobile platform
上傳時(shí)間: 2017-03-31
上傳用戶:wyc199288
It si very interesting ebook of administrarion for Linux, but there was describe computers network in detail: ISO recommendation, ISO levels, tools and features.
標(biāo)簽: administrarion interesting computers describe
上傳時(shí)間: 2017-04-15
上傳用戶:tianyi223
課程設(shè)計(jì): 1.求出在一個(gè)n×n的棋盤上,放置n個(gè)不能互相捕捉的國際象棋“皇后”的所有布局。 2.設(shè)計(jì)一個(gè)利用哈夫曼算法的編碼和譯碼系統(tǒng),重復(fù)地顯示并處理以下項(xiàng)目,直到選擇退出為止。 【基本要求】 1) 將權(quán)值數(shù)據(jù)存放在數(shù)據(jù)文件(文件名為data.txt,位于執(zhí)行程序的當(dāng)前目錄中) 2) 分別采用動態(tài)和靜態(tài)存儲結(jié)構(gòu) 3) 初始化:鍵盤輸入字符集大小n、n個(gè)字符和n個(gè)權(quán)值,建立哈夫曼樹; 4) 編碼:利用建好的哈夫曼樹生成哈夫曼編碼; 5) 輸出編碼; 6) 設(shè)字符集及頻度如下表: 字符 空格 A B C D E F G H I J K L M 頻度 186 64 13 22 32 103 21 15 47 57 1 5 32 20 字符 N O P Q R S T U V W X Y Z 頻度 57 63 15 1 48 51 80 23 8 18 1 16 1
標(biāo)簽:
上傳時(shí)間: 2017-04-24
上傳用戶:zhyiroy
Linux socket programming delves into many particulars of network programming. It is organized into five specific parts: network programming from the client perspective, The Server Perspective and Load Control, Socket objects, advanced sockets.
標(biāo)簽: programming into particulars organized
上傳時(shí)間: 2014-01-19
上傳用戶:xjz632
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1