Update main.cpp

use English
This commit is contained in:
huihut 2020-12-16 15:35:42 +08:00 committed by GitHub
parent 4252d8e5f3
commit d7e235a560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,30 +11,30 @@
int main() { int main() {
std::cout << "*******************" << std::endl; 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 << "*******************" << std::endl; std::cout << "*******************" << std::endl;
std::cout << "** <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl; std::cout << "** Singleton mode **" << std::endl;
std::cout << "*******************" << std::endl; std::cout << "*******************" << std::endl;
SingletonMain(); SingletonMain();
std::cout << "*******************" << std::endl; std::cout << "*******************" << std::endl;
std::cout << "** <EFBFBD><EFBFBD><EFBFBD>󹤳<EFBFBD>ģʽ **" << std::endl; std::cout << "** Abstract factory pattern **" << std::endl;
std::cout << "*******************" << std::endl; std::cout << "*******************" << std::endl;
FactoryMain(); FactoryMain();
std::cout << "*******************" << std::endl; std::cout << "*******************" << std::endl;
std::cout << "** <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl; std::cout << "** Adapter mode **" << std::endl;
std::cout << "*******************" << std::endl; std::cout << "*******************" << std::endl;
AdapterMain(); AdapterMain();
std::cout << "*******************" << std::endl; 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 << "*******************" << std::endl; std::cout << "*******************" << std::endl;
std::cout << "** <EFBFBD>۲<EFBFBD><EFBFBD><EFBFBD>ģʽ **" << std::endl; std::cout << "** Observer mode **" << std::endl;
std::cout << "*******************" << std::endl; std::cout << "*******************" << std::endl;
ObserverMain(); ObserverMain();