摘要:
模式动机(Composite Pattern):将对象组合成树形结构来表示“整体-部分”层次。操作时,使得对部分的操作与对整体的操作具有一致性。模式结构图:典型的Composite结构为:模式代码:bt_组合模式.h: 1 #ifndef CP_H 2 #define CP_H 3 #include... 阅读全文
posted @ 2015-06-02 20:47
benxintuzi
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号