申请和释放内存: // 申请和释放一个类型的内存 int *p = new int; delete p; // 申请和释放一个块空间 int *arr = new int[10]; delete []arr