1 Star 0 Fork 0

luoyong/DesignExperiment

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.cpp 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
luoyong 提交于 2022-09-18 10:16 . Signed-off-by: luoyong
#include <QCoreApplication>
#include <string>
#include <iostream>
#include "StringExt.h"
#include "Factory/SimpleFactory.h"
#include "Factory/MethodFactory.h"
#include "Factory/AbstractFactory.h"
#include "Strategy/StrategyOld.h"
#include "Singleton/Singleton.h"
#include "Proxy/Proxy.h"
#include "Adapter/Adapter.h"
#include "Composite/Composite.h"
#include "Prototype/Prototype.h"
#include "Builder/Builder.h"
#include "Flyweight/Flyweight.h"
#include "Bridge/Bridge.h"
#include "Visitor/Visitor.h"
#include "Filter/Filter.h"
#include "Observer/Observer.h"
#include "Command/Command.h"
#include "State/State.h"
#include "Iterator/Iterator.h"
#include "Interpreter/Interpreter.h"
#include "ChainResponsibility/ChainResponsibility.h"
#include "Decorator/Decorator.h"
#include "Facade/Facade.h"
#include "Mediator/Mediator.h"
#include "Memento/Memento.h"
#include "Template/Template.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
std::u16string u16str=to_utf16("abc");
AdapterTest();
BridgeTest();
OrderBuilderTest();
ChainResponsibilityTest();
CommandTest();
CompositeTest();
DecoratorTest();
FacadeTest();
SimpleFactoryTest();
MethodFactoryTest();
AbstractFactoryTest();
FilterTest();
FlyweightTest();
InterpreterTest();
IteratorTest();
MediatorTest();
MementoTest();
ObserverTest();
ProtoTypeTest();
ProxyTest();
SingletonTest();
StateTest();
StrategyOldTest();
Design::TemplateTest();
VisitorTest();
return a.exec();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/luoyong075/DesignExperiment.git
git@gitee.com:luoyong075/DesignExperiment.git
luoyong075
DesignExperiment
DesignExperiment
master

搜索帮助