📅  最后修改于: 2022-03-11 14:56:04.644000             🧑  作者: Mango
// assume ptr has previously been allocated with operator new
delete ptr; // return the memory pointed to by ptr to the operating system
ptr = nullptr; // set ptr to be a null pointer