Merge pull request #73 from IkshulDureja/new

new
This commit is contained in:
huihut 2020-12-16 15:38:11 +08:00 committed by GitHub
commit 8fe5157ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,33 +11,32 @@
int main() {
std::cout << "*******************" << std::endl;
std::cout << "** 设计模式例子 **" << std::endl;
std::cout << "** Design pattern example **" << std::endl;
std::cout << "*******************" << std::endl;
std::cout << "*******************" << std::endl;
std::cout << "** 单例模式 **" << std::endl;
std::cout << "** Singleton mode **" << std::endl;
std::cout << "*******************" << std::endl;
SingletonMain();
std::cout << "*******************" << std::endl;
std::cout << "** 抽象工厂模式 **" << std::endl;
std::cout << "** Abstract factory pattern **" << std::endl;
std::cout << "*******************" << std::endl;
FactoryMain();
std::cout << "*******************" << std::endl;
std::cout << "** 适配器模式 **" << std::endl;
std::cout << "** Adapter mode **" << std::endl;
std::cout << "*******************" << std::endl;
AdapterMain();
std::cout << "*******************" << std::endl;
std::cout << "** 桥接模式 **" << std::endl;
std::cout << "** Bridge mode **" << std::endl;
std::cout << "*******************" << std::endl;
BridgeMain();
std::cout << "*******************" << std::endl;
std::cout << "** 观察者模式 **" << std::endl;
std::cout << "** Observer mode **" << std::endl;
std::cout << "*******************" << std::endl;
ObserverMain();
return 0;
}
}