用CY7C63723設計的鼠標固件程序
chip.c - include file that defines CY7C63723 constants
- combi.c - main source file
- combi.hex - Intel hex file for programming a CY7C63723 microcontroller
- combi.lst - output listing from c-compiler for use with the CYDB debugger
- macros.h - defines macros used in combi.c
- ps2defs.h - defines PS/2 interface constants
- usb_desc.h - defines the USB descriptors
- usbdefs.h - defines USB interface constants
鄰接矩陣類的根是A d j a c e n c y W D i g r a p h,因此從這個類開始。程序1 2 - 1給出了類的描述。程
序中,先用程序1 - 1 3中函數Make2DArray 為二組數組a 分配空間,然后對數組a 初始化,以描述
一個n 頂點、沒有邊的圖的鄰接矩陣,其復雜性為( n2 )。該代碼沒有捕獲可能由M a k e 2 D A r r a y
引發的異常。在析構函數中調用了程序1 - 1 4中的二維數組釋放函數D e l e t e 2 D