diff --git a/practical_exercises/key_exercises/中括号重载.cpp b/practical_exercises/key_exercises/中括号重载.cpp index a9a2137..23039bd 100644 --- a/practical_exercises/key_exercises/中括号重载.cpp +++ b/practical_exercises/key_exercises/中括号重载.cpp @@ -40,7 +40,7 @@ public: cout << employ[i].name << " " << employ[i].salary << endl; } ~SalaryManaege() { - delete employ; + delete[] employ; } }; int main()