mirror of
https://github.com/huihut/interview.git
synced 2025-12-18 13:04:38 +03:00
Design mode code comments are changed to English
https://github.com/huihut/interview/pull/73
This commit is contained in:
@@ -10,7 +10,7 @@ using namespace std;
|
||||
|
||||
void FactoryMain()
|
||||
{
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// Benz
|
||||
Factory * pFactory = Factory::CreateFactory(Factory::FACTORY_TYPE::BENZ_FACTORY);
|
||||
ICar * pCar = pFactory->CreateCar();
|
||||
IBike * pBike = pFactory->CreateBike();
|
||||
@@ -22,7 +22,7 @@ void FactoryMain()
|
||||
SAFE_DELETE(pBike);
|
||||
SAFE_DELETE(pFactory);
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// BMW
|
||||
pFactory = Factory::CreateFactory(Factory::FACTORY_TYPE::BMW_FACTORY);
|
||||
pCar = pFactory->CreateCar();
|
||||
pBike = pFactory->CreateBike();
|
||||
@@ -33,7 +33,7 @@ void FactoryMain()
|
||||
SAFE_DELETE(pBike);
|
||||
SAFE_DELETE(pFactory);
|
||||
|
||||
// <EFBFBD>µ<EFBFBD>
|
||||
// Audi
|
||||
pFactory = Factory::CreateFactory(Factory::FACTORY_TYPE::AUDI_FACTORY);
|
||||
pCar = pFactory->CreateCar();
|
||||
pBike = pFactory->CreateBike();
|
||||
|
||||
Reference in New Issue
Block a user