Skip to content

Commit

Permalink
修改设计模式
Browse files Browse the repository at this point in the history
  • Loading branch information
huihut committed Jul 22, 2018
1 parent b69685a commit b5a24d6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
12 changes: 11 additions & 1 deletion DesignPattern/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# DesignPattern
# 设计模式

> 各大设计模式例子参考:[CSDN专栏 . C++ 设计模式](https://blog.csdn.net/column/details/15392.html) 系列博文
此文件夹为一个 CLion 工程,由 CMake 构建,各个文件夹为各个设计模式的具体实现。文件中可能会有中文乱码问题,请以 `GB2312`(中文) 编码打开。

* [单例模式例子](SingletonPattern)
* [抽象工厂模式例子](AbstractFactoryPattern)
* [适配器模式例子](AdapterPattern)
* [桥接模式例子](BridgePattern)
* [观察者模式例子](ObserverPattern)
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
### 单例模式
Expand All @@ -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)
## 链接装载库
### 各平台文件格式
Expand Down

0 comments on commit b5a24d6

Please sign in to comment.