不用new int example[5]; ... example数组被创建在栈上,当拥有他的函数调用结束时,example数组被销毁 用new int* anthor = new int[5]; ... 数组被创建在堆上,需要调用delete销毁 delete[] anthor;