We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce795e4 commit 66455dfCopy full SHA for 66455df
2 files changed
大話/note/code/Adapter_exmpale1.cpp
@@ -7,7 +7,6 @@ class Target {
7
cout << "普通的請求" << endl;
8
}
9
virtual ~Target() {
10
-
11
12
};
13
大話/note/code/strategy.cpp
@@ -46,12 +46,12 @@ int main() {
46
cin >> c;
47
48
switch (c) {
49
- case '+':
50
- {
51
- Context *context = new Context(new AddOperation(a, b));
+ case '+': {
+ Context* context = new Context(new AddOperation(a, b));
52
cout << context->GetResult() << endl;
53
54
break;
+
55
default:
56
57
0 commit comments