设计模式例程

This commit is contained in:
2025-06-02 13:57:29 +08:00
commit 22124bb827
32 changed files with 2149 additions and 0 deletions

22
main.cpp Normal file
View File

@ -0,0 +1,22 @@
#include "common.hpp"
#include "design_pattern.hpp"
int main()
{
RunObserveMode();
RunStateMode();
RunDecorateMode();
RunSingletonMode();
RunPrototypeMode();
RunChainOfResponsibilityMode();
RunProxyMode();
RunFacadeMode();
RunIteratorMode();
RunCombination();
RunStrategyMode();
RunSimpleFactoryMode();
RunAbstractFactoryMode();
return 0;
}