mirror of
https://github.com/huihut/interview.git
synced 2024-03-22 13:10:48 +08:00
Update main.cpp
use English
This commit is contained in:
parent
4252d8e5f3
commit
d7e235a560
|
@ -11,30 +11,30 @@
|
|||
|
||||
int main() {
|
||||
std::cout << "*******************" << std::endl;
|
||||
std::cout << "** <EFBFBD><EFBFBD><EFBFBD>ģʽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> **" << std::endl;
|
||||
std::cout << "** Design pattern example **" << std::endl;
|
||||
std::cout << "*******************" << std::endl;
|
||||
|
||||
std::cout << "*******************" << std::endl;
|
||||
std::cout << "** <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl;
|
||||
std::cout << "** Singleton mode **" << std::endl;
|
||||
std::cout << "*******************" << std::endl;
|
||||
SingletonMain();
|
||||
|
||||
std::cout << "*******************" << std::endl;
|
||||
std::cout << "** <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl;
|
||||
std::cout << "** Abstract factory pattern **" << std::endl;
|
||||
std::cout << "*******************" << std::endl;
|
||||
FactoryMain();
|
||||
|
||||
std::cout << "*******************" << std::endl;
|
||||
std::cout << "** <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl;
|
||||
std::cout << "** Adapter mode **" << std::endl;
|
||||
std::cout << "*******************" << std::endl;
|
||||
AdapterMain();
|
||||
|
||||
std::cout << "*******************" << std::endl;
|
||||
std::cout << "** <EFBFBD>Ž<EFBFBD>ģʽ **" << std::endl;
|
||||
std::cout << "** Bridge mode **" << std::endl;
|
||||
std::cout << "*******************" << std::endl;
|
||||
|
||||
std::cout << "*******************" << std::endl;
|
||||
std::cout << "** <EFBFBD>۲<EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl;
|
||||
std::cout << "** Observer mode **" << std::endl;
|
||||
std::cout << "*******************" << std::endl;
|
||||
ObserverMain();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user