creational:
factory &fruit
builder &car
prototype &circle
singleton &configurefile
structural:
adapter &CCircle借用一下XCircle的显示操作
bridge &draw_lib
composite & a student, a group of students, teacher. tree .
decorator &child eat
facade &compiler
flyweight &bookinfo of library
proxy &CBuyerProxy
behavioral:
chainofresponsibility &a child want to eat apple, mom, father, grandmother,,,
command &Invoker
interpreter &
iterator &STL arraylist : an array + cnt
mediator &colleague A B C
memento &originator memento
observer &officeDoc
state &trafficLight
strategy &debug, showstrategy-logstrategy
template method &catch MM
visitor &element and visitor
设计模式(C++)源代码 一雨田.rar