圖的深度遍歷,輸出結(jié)果為(紅色為鍵盤(pán)輸入的數(shù)據(jù),權(quán)值都置為1):
輸入頂點(diǎn)數(shù)和弧數(shù):8 9
輸入8個(gè)頂點(diǎn).
輸入頂點(diǎn)0:a
輸入頂點(diǎn)1:b
輸入頂點(diǎn)2:c
輸入頂點(diǎn)3:d
輸入頂點(diǎn)4:e
輸入頂點(diǎn)5:f
輸入頂點(diǎn)6:g
輸入頂點(diǎn)7:h
輸入9條弧.
輸入弧0:a b 1
輸入弧1:b d 1
輸入弧2:b e 1
輸入弧3:d h 1
輸入弧4:e h 1
輸入弧5:a c 1
輸入弧6:c f 1
輸入弧7:c g 1
輸入弧8:f g 1
深度優(yōu)先遍歷: a b d h e c f g
程序結(jié)束.
Atheros無(wú)線芯片AR-6000系列wince 6驅(qū)動(dòng)源代碼(這東西我也沒(méi)用過(guò)別問(wèn)我,我是搜別的wince資源搜到的)
AR6K SDIO support. Requires firmware 1.1 on SD13 cards.
readme:
Atheros Communications
AR6001 WLAN Driver for SDIO installation Read Me
March 26,2007
(based on k14 fw1.1)
Windows CE Embedded CE 6.0 driver installation.
1. Unzip the installation file onto your system (called installation directory below)
2. Create an OS design or open an existing OS design in Platform Builder 6.0.
a. The OS must support the SD bus driver and have an SD Host Controller driver (add these from Catalog Items).
b. Run image size should be set to allow greater than 32MB.
3. a. From the Project menu select Add Existing Subproject...
b. select AR6K_DRV.pbxml
c. select open
This should create a subproject within your OS Design project for the AR6K_DRV driver.
4. Build the solution.
轉(zhuǎn)自Tony嵌入式,原文地址:http://www.cevx.com/bbs/dispbbs.asp?boardID=4&ID=11762&page=1
1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if
A = 1 2 3 then B = 3 2 1
4 5 6 6 5 4
7 8 9 9 8 7
Write a main program to call reverse(A) for the matrix A = magic(5). Print to the screen both A and reverse(A).
2) Write a program which accepts an input k from the keyboard, and which prints out the smallest fibonacci number that is at least as large as k. The program should also print out its position in the fibonacci sequence. Here is a sample of input and output:
Enter k>0: 100
144 is the smallest fibonacci number greater than or equal to 100.
It is the 12th fibonacci number.
對(duì)于給定的一組進(jìn)程,采用優(yōu)先級(jí)加時(shí)間片輪轉(zhuǎn)法進(jìn)行調(diào)度。設(shè)有一個(gè)就緒隊(duì)列,就緒進(jìn)程按優(yōu)先數(shù)(優(yōu)先數(shù)范圍0-100)由小到大排列(優(yōu)先數(shù)越小,級(jí)別越高)。當(dāng)某一進(jìn)程運(yùn)行完一個(gè)時(shí)間片后,其優(yōu)先級(jí)應(yīng)下調(diào)(如優(yōu)先數(shù)加3),試對(duì)如下給定的一組進(jìn)程給出其調(diào)度順序。每當(dāng)結(jié)束一進(jìn)程時(shí)要給出當(dāng)前系統(tǒng)的狀態(tài)(即顯示就緒隊(duì)列)。這里,進(jìn)程可用進(jìn)程控制塊(PCB)表示為如右表所示。
進(jìn)程名 A B C D E F G H J K L M
到達(dá)時(shí)間 0 1 2 3 6 8 12 12 12 18 25 25
服務(wù)時(shí)間 6 4 10 5 1 2 5 10 4 3 15 8