修改设计模式

This commit is contained in:
huihut
2018-07-22 15:03:09 +08:00
parent b69685a5a7
commit b5a24d628b
2 changed files with 21 additions and 9 deletions

View File

@@ -1 +1,11 @@
# DesignPattern
# 设计模式
> 各大设计模式例子参考:[CSDN专栏 . C++ 设计模式](https://blog.csdn.net/column/details/15392.html) 系列博文
此文件夹为一个 CLion 工程,由 CMake 构建,各个文件夹为各个设计模式的具体实现。文件中可能会有中文乱码问题,请以 `GB2312`(中文) 编码打开。
* [单例模式例子](SingletonPattern)
* [抽象工厂模式例子](AbstractFactoryPattern)
* [适配器模式例子](AdapterPattern)
* [桥接模式例子](BridgePattern)
* [观察者模式例子](ObserverPattern)

View File

@@ -2422,14 +2422,7 @@ ssize_t write(int fd, const void *buf, size_t count);
> 各大设计模式例子参考:[CSDN专栏 . C++ 设计模式](https://blog.csdn.net/column/details/15392.html) 系列博文
### 设计模式的六大原则
* 单一职责原则(SRP,Single Responsibility Principle)
* 里氏替换原则(LSP,Liskov Substitution Principle)
* 依赖倒置原则(DIP,Dependence Inversion Principle)
* 接口隔离原则(ISP,Interface Segregation Principle)
* 迪米特法则(LoD,Law of Demeter)
* 开放封闭原则(OCP,Open Close Principle)
[设计模式工程目录](DesignPattern)
### 单例模式
@@ -2451,6 +2444,15 @@ ssize_t write(int fd, const void *buf, size_t count);
[观察者模式例子](DesignPattern/ObserverPattern)
### 设计模式的六大原则
* 单一职责原则(SRP,Single Responsibility Principle)
* 里氏替换原则(LSP,Liskov Substitution Principle)
* 依赖倒置原则(DIP,Dependence Inversion Principle)
* 接口隔离原则(ISP,Interface Segregation Principle)
* 迪米特法则(LoD,Law of Demeter)
* 开放封闭原则(OCP,Open Close Principle)
## 链接装载库
### 各平台文件格式