Skip to content

Commit 66455df

Browse files
author
jason_yao
committed
update
1 parent ce795e4 commit 66455df

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

大話/note/code/Adapter_exmpale1.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class Target {
77
cout << "普通的請求" << endl;
88
}
99
virtual ~Target() {
10-
1110
}
1211
};
1312

大話/note/code/strategy.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ int main() {
4646
cin >> c;
4747

4848
switch (c) {
49-
case '+':
50-
{
51-
Context *context = new Context(new AddOperation(a, b));
49+
case '+': {
50+
Context* context = new Context(new AddOperation(a, b));
5251
cout << context->GetResult() << endl;
5352
}
5453
break;
54+
5555
default:
5656
break;
5757
}

0 commit comments

Comments
 (0)