cpp-interview/DesignPattern/main.cpp
Ikshul Dureja 4252d8e5f3 new
2020-12-16 12:30:19 +05:30

42 lines
1.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Created by xiemenghui on 2018/7/20.
//
#include <iostream>
#include "SingletonPattern/SingletonMain.h"
#include "AbstractFactoryPattern/FactoryMain.h"
#include "AdapterPattern/AdapterMain.h"
#include "BridgePattern/BridgeMain.h"
#include "ObserverPattern/ObserverMain.h"
int main() {
std::cout << "*******************" << std::endl;
std::cout << "** <20><><EFBFBD>ģʽ<C4A3><CABD><EFBFBD><EFBFBD> **" << std::endl;
std::cout << "*******************" << std::endl;
std::cout << "*******************" << std::endl;
std::cout << "** <20><><EFBFBD><EFBFBD>ģʽ **" << std::endl;
std::cout << "*******************" << std::endl;
SingletonMain();
std::cout << "*******************" << std::endl;
std::cout << "** <20><><EFBFBD>󹤳<EFBFBD>ģʽ **" << std::endl;
std::cout << "*******************" << std::endl;
FactoryMain();
std::cout << "*******************" << std::endl;
std::cout << "** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl;
std::cout << "*******************" << std::endl;
AdapterMain();
std::cout << "*******************" << std::endl;
std::cout << "** <20>Ž<EFBFBD>ģʽ **" << std::endl;
std::cout << "*******************" << std::endl;
std::cout << "*******************" << std::endl;
std::cout << "** <20>۲<EFBFBD><DBB2><EFBFBD>ģʽ **" << std::endl;
std::cout << "*******************" << std::endl;
ObserverMain();
return 0;
}