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