From 49bc9c81306c0af19ceb2a36400127e57cfc5773 Mon Sep 17 00:00:00 2001 From: FengJungle Date: Thu, 28 Oct 2021 21:26:15 +0800 Subject: [PATCH] bugfix: change character code : utf-8 --- 07.AdapterPattern/2.Code/AdapterPattern.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/07.AdapterPattern/2.Code/AdapterPattern.h b/07.AdapterPattern/2.Code/AdapterPattern.h index 617af3b..217415e 100644 --- a/07.AdapterPattern/2.Code/AdapterPattern.h +++ b/07.AdapterPattern/2.Code/AdapterPattern.h @@ -6,7 +6,7 @@ #include using namespace std; -//Ŀ������� +// 目标抽象类 class Controller { public: @@ -16,27 +16,27 @@ public: private: }; -//��������DxfParser +// 适配者类DxfParser class DxfParser { public: DxfParser(){} void parseFile(){ - printf("�����ļ���ȡ����\n"); + printf("Parse dxf file\n"); } }; -//��������PathPlanner +// 适配者类PathPlanner class PathPlanner { public: PathPlanner(){} void calculate(){ - printf("����ӹ�·��\n"); + printf("calculate path\n"); } }; -//��������Adapter +// 适配器类Adapter class Adapter:public Controller { public: @@ -51,7 +51,7 @@ public: Adapter(const Adapter& other) = delete; Adapter& operator=(const Adapter& ) = delete; void pathPlanning(){ - printf("·���滮��\n"); + printf("pathPlanning\n"); dxfParser->parseFile(); pathPlanner->calculate(); }