輸入四個點(diǎn),判斷此四點(diǎn)是否可形成一個平行四邊形。 程序中描述了一個抽象數(shù)據(jù)類型Vector2D,表示一個向量。具有(x,y)兩個值。其本身具有減另一個向量(minus(Vector2D)),判斷自身是否為零向量(iszero()),與另一個向量對應(yīng)值y,x乘積之差(inner(Vector2D))。由于兩個向量平行,則乘積之差x1*y2-x2*y1=0。點(diǎn)A,B,C,D四點(diǎn)組成平行四邊形的條件是AB//CD,BC//DA且各個向量皆不為零向量。 首先聲明四個向量。向量i獲得值的方法是由getPoint(int i)獲得。然后根據(jù)Vector2D重載后的toString()函數(shù)將各個向量輸出查看。最后判斷此四點(diǎn)是否可組成平行四邊行。
標(biāo)簽: 輸入
上傳時間: 2016-04-30
上傳用戶:qq521
Simple DirectMedia Layer庫,簡稱 SDL,是為數(shù)不多的商業(yè)游戲開發(fā)公司使用的免費(fèi)軟件庫之一。它提供跨平臺的二維幀緩沖區(qū)圖形和音頻服務(wù),它支持 Linux、Win32 和 BeOS。也不同程度地支持其它平臺,包括 Solaris、IRIX、FreeBSD 和 MacOS。除了大量的服務(wù),包括線程、獨(dú)立于字節(jié)存儲次序的宏和 CD 音頻,SDL 還提供了一個簡單的 API,它允許您盡可能接近本機(jī)硬件。使用 SDL 有三重優(yōu)點(diǎn):穩(wěn)定、簡單和靈活。
標(biāo)簽: DirectMedia Simple Layer
上傳時間: 2016-05-19
上傳用戶:zhouli
If your application uses MFC in a shared DLL, and your application is in a language other than the operating system s current language, you will need to copy the corresponding localized resources MFC42XXX.DLL from the Microsoft Visual C++ CD-ROM onto the system or system32 directory, and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation. For example, MFC42DEU.DLL contains resources translated to German.) If you don t do this, some of the UI elements of your application will remain in the language of the operating system.
標(biāo)簽: application your language shared
上傳時間: 2014-01-02
上傳用戶:iswlkje
用fpga實(shí)現(xiàn)的DA轉(zhuǎn)換器,有說明和源碼,VDHL文件。 A PLD Based Delta-Sigma DAC Delta-Sigma modulation is the simple, yet powerful, technique responsible for the extraordinary performance and low cost of today s audio CD players. The simplest Delta-Sigma DAC consists of a Delta-Sigma modulator and a one bit DAC. Since, both of these components can be realized using digital circuits, it is possible to implement a low precision Delta-Sigma DAC using a PLD.
標(biāo)簽: fpga DA轉(zhuǎn)換器
上傳時間: 2016-06-10
上傳用戶:bjgaofei
:用C語言解決丟番圖年齡問題 數(shù)學(xué)書上的題目,數(shù)學(xué)家丟番圖的墓碑上刻著:他的生命的 十二分之一是幸福的童年,過了生命的六分之一,他長出了 細(xì)細(xì)的胡須,過了生命的七分之一,他結(jié)婚了,五年后他有 了兒子,但兒子只活了他壽命的二分之一,兒子死后,他在 極度悲痛中生活了四年,也與世長辭了。
標(biāo)簽: C語言
上傳時間: 2016-06-13
上傳用戶:13160677563
與IE相關(guān)的一些技巧,包括:刪除流氓網(wǎng)站、使用PING判斷TCPIP故障、解決網(wǎng)頁中不顯示動態(tài)圖片問題、刻愛人的名字在IE上等內(nèi)容。
標(biāo)簽:
上傳時間: 2016-06-26
上傳用戶:refent
黑客攻擊基礎(chǔ)知識,cdburning WINDOWS 刻錄編程源代碼
上傳時間: 2013-12-13
上傳用戶:gaojiao1999
T-kernel 的extension源代碼,是日本最著名的T-kernel所獨(dú)有的,適合開發(fā)T-kernel的朋友們使用! TK/SE is the program that extends T-Kernel and provides the functions such as a file system and a process management. The TK/SE archive to be provided is comprised of the main portion and the 2 extended file system portions, and TK/SE object is built by adding these to T-Kernel source. a) tkernel_se_1.00.00.tar.gz Main source of T-Kernel/SE b) extfs_fatfs_1.00.00.tar.gz Difference source of T-Kernel/SE extended file system (FAT) c) extfs_cdrom_1.00.00.tar.gz Difference source of T-Kernel/SE extended file system (CD-ROM)
標(biāo)簽: extension T-kernel 源代碼
上傳時間: 2014-01-20
上傳用戶:czl10052678
Finally: a hands-on, Java-centric workbook companion for the classic Design Patterns! Workbook approach deepens your understanding, builds your confidence, and strengthens your skills. Covers all five categories of design pattern intent: interfaces, responsibility, construction, operations, and extensions. CD-ROM contains all code examples from the book -- plus bonus code examples not found in the book. About the Author: Steven John Metsker is a researcher and author focused on advanced techniques for magnifying the abilities of object-oriented software developers. A rising star in the patterns community, he was recently invited to join the acclaimed Hillside Group. He is author of Building Parsers with Java? (Addison-Wesley).
標(biāo)簽: Java-centric companion hands-on Patterns
上傳時間: 2013-12-01
上傳用戶:1079836864
對P1、P2、P3口的輸入數(shù)據(jù)保存,再將這些數(shù)據(jù)輸出給CD顯示
標(biāo)簽: 輸入 數(shù)據(jù)
上傳時間: 2013-12-16
上傳用戶:qq21508895
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1