mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-04 11:03:58 +08:00
Update 中括号重载.cpp
这里delete应该是delete[]
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
||||
cout << employ[i].name << " " << employ[i].salary << endl;
|
||||
}
|
||||
~SalaryManaege() {
|
||||
delete employ;
|
||||
delete[] employ;
|
||||
}
|
||||
};
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user