int* myArray = new int[10];// ... 使用數組 ...delete[] myArray; // 第一次釋放,正確delete[] myArray; // 錯誤!重復釋放會(huì )導(dao)致未定義行為。