Update ex12.26.cpp

when I use" delete[] p;",an error occurred.
Merge pull request #12 from gupenghu/patch-2

Update ex12.26.cpp