Mir2 Actor.pas if (IsFace) and (FaceIndex > -1) then begin d := aFrmMain.WFaceimg.Images[FaceIndex * 10 + (FaceFram) mod 8] /// if HorseSurface<>nil then // dSurface.Draw (dx+shiftx, dy + hpy + ShiftY-60, d.ClientRect, d, TRUE) // else if d <> nil then begin if HorseSurface <> nil then dsurface.Draw(SayX - d.Width div 2, dy + hpy + ShiftY - 60, d.ClientRect, d, True) else dsurface.Draw(SayX - d.Width div 2, dy + hpy + ShiftY - 50, d.ClientRect, d, True) end end end
標簽: FaceIndex aFrmMain WFaceimg IsFace
上傳時間: 2016-02-21
上傳用戶:ruixue198909
disp() { setTitle("掃描線種子填充算法") setSize(width,height) setBackground(Color.white) addWindowListener(this) addMouseListener(this) addMouseMotionListener(this) setVisible(true)
標簽: setBackground addWindow setTitle setSize
上傳時間: 2014-09-05
上傳用戶:haoxiyizhong
編寫具有如下函數原型的遞歸與非遞歸兩種函數equ,負責判斷數組a與b的前n個元素值是否按下標對應完全相同,是則返回true,否則返回false。并編制主函數對它們進行調用,以驗證其正確性。 bool equ(int a[], int b[], int n) 提示:遞歸函數中可按如下方式來分解并處理問題,先判斷最后一個元素是否相同,不同則返false;相同則看n是否等于1,是則返回true,否則進行遞歸調用(傳去實參a、b與 n-1,去判斷前n-1個元素的相等性),并返回遞歸調用的結果(與前n-1個元素的是否相等性相同)。
上傳時間: 2013-12-03
上傳用戶:梧桐
1)創建任意字符型有序(遞增排序)單循環鏈表(即鏈表的字符元素隨機在鍵盤上輸入),長度限定在15之內; 2)打印(遍歷)該鏈表(依次打印出表中元素值); 3)在鏈表中查找第i個元素,i合法返回元素值,否則,返回FALSE; 4)在鏈表中查找與一已知字符相同的第一個結點,有則返回TRUE,否則,返回FALSE; 5)在鏈表中按照有序方式插入一已知字符元素; 6)在線性表中刪除第i個結點; 7)計算鏈表的長度
上傳時間: 2013-12-25
上傳用戶:lo25643
This source code has been tested under OpenWindows 2.0, Sun s X11/NeWS server. For Xlib programs that use KeyPress events you should either (1) set the FocusLenience resource to `True , or (2) specifically notify the window manager that you want to receive KeyPress/KeyRelease events (but only in programs that need these events).
標簽: OpenWindows programs source server
上傳時間: 2016-03-29
上傳用戶:xieguodong1234
simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu option. Count the number of times each side of the coin appears. Display the results. The program should call a separate method flip that takes no arguments and returns false for tails and true for heads. [ Note: If the program realistically simulates coin tossing, each side of the coin should appear approximately half the time.]
標簽: the coin simulates chooses
上傳時間: 2014-08-30
上傳用戶:pompey
主要是修改了一些2.3.0版本的Bug,特別是當autoCommit=false的情況下以及多線程添加Document,有些字段打開了term-vector有些沒有打都會對索引數據造成破壞 autoCommit 選項是從2.2.0版本就添加了,默認是true,我對這個參數還不是很理解,都是用的默認值true。所以沒有碰到問題。 2.3.1版本沒有包含任何新的功能,索引文件的格式也沒有變化,完全兼容2.3.0版本。 官方鼓勵所有使用2.3.0版本的應用盡快升級到2.3.1版本。
上傳時間: 2013-12-16
上傳用戶:wkchong
The Radio Interface Layer is the name for an interface that was developed especially for the Pocket PC Phone Edition. It is meant to abstract the interface with a phone/modem device. To achieve this it is closely modelled after the GSM AT command interface. Unfortunately the API was not published officially by Microsoft. Instead more high level API s were published that should be sufficient for developers. Again, unfortunately they are not sufficient. For example the API for receiving notification of incoming SMS messages is arranged for exclusively for one application per type of SMS. Apparently this will be improved upon in Pocket PC 2003. Another area is the availablity of a true AT command modem interface to interact with the GSM modem directly, which is also absent.
標簽: especially Interface for developed
上傳時間: 2013-12-02
上傳用戶:wff
詞法分析是編制一個讀單詞的過程,從輸入的源程序中,識別出各個具有獨立意義的單詞,即基本保留字、標識符、常數、運算符、分隔符五大類。并依次輸出各個單詞的內部編碼及單詞符號自身值。程序語言的單詞符號一般分為五種:關鍵字(保留字/基本字)if、while、begin…;標識符:常量名、變量名…;常數:34、56.78、true、‘a’、…;運算符:+、-、*、/、〈、and、or、….、;界限符:, ; ( ) { } /*…。
上傳時間: 2016-05-31
上傳用戶:417313137
貪吃蛇*要點分析: *1)數據結構:matrix[][]用來存儲地圖上面的信息,如果什么也沒有設置為false, * 如果有食物或蛇,設置為true;nodeArray,一個LinkedList,用來保存蛇的每 * 一節;food用來保存食物的位置;而Node類是保存每個位置的信息。 *2)重要函數: * changeDirection(int newDirection) ,用來改變蛇前進的方向,而且只是 * 保存頭部的前進方向,因為其他的前進方向已經用位置來指明了。 其中newDirection * 必須和原來的direction不是相反方向,所以相反方向的值用了同樣的奇偶性。在測試 * 的時候使用了direction%2!=newDirection%2 進行判斷。 * moveOn(),用來更新蛇的位置,對于當前方向,把頭部位置進行相應改變。如果越界, * 結束;否則,檢測是否遇到食物(加頭部)或身體(結束);如果什么都沒有,加上頭部, * 去掉尾部。由于用了LinkedList數據結構,省去了相當多的麻煩。
上傳時間: 2014-06-14
上傳用戶:cjf0304