Update ex12.26.cpp

when I use" delete[] p;",an error occurred.