意圖 將一個類的接口轉換成客戶希望的另外一個接口。A d a p t e r 模式使得原本由于接口不兼容而不能一起工作的那些類可以一起工作。
適用性 · 你想使用一個已經存在的類,而它的接口不符合你的需求。 · 你想創建一個可以復用的類,該類可以與其他不相關的類或不可預見的類(即那些接口可能不一定兼容的類)協同工作。 · (僅適用于對象A d a p t e r )你想使用一些已經存在的子類,但是不可能對每一個都進行子類化以匹配它們的接口。對象適配器可以適配它的父類接口。
C語言:陷阱和缺陷
PDF格式
原著:Andrew Koenig - AT&T Bell Laboratories Murray Hill, New Jersey 07094
C語言及其典型實現被設計為能被專家們容易地使用。這門語言簡潔并附有表達力。但有一些限制可以保護那些浮躁的人。一個浮躁的人可以從這些條款中獲得一些幫助。
Training embedded apps to process speech may be as easy as finding the right 8-bit micro. Don t let what Rodger has to say about using an ADPCM algorithm and PWM output to generate speech to go in one ear and out the other
The CC1000 RF transceiver is very easy
to interface with a microcontroller.
The chip is configured using a three-wire
bus, comprising of PCLK, PDATA and
PALE signals.