C++ keyword: delete note

C++ keyword: delete note Oops, today, I am programing in C++. Then, I found some attentions about delete. for Array, if we use delete not delete [] , it will arise a logic fault.

So if you apply a single value space using new , you can use delete to release it. However, if you apply a array space, you should not do this. You should use delete [] to release it. And there is unmeaning to use delete [] to release single object.

C++ is nice language. Yeah...............

I'm just lazy to install Chinese input method. 


posted @ 2011-09-06 10:34  Rabbit Nick  阅读(165)  评论(0编辑  收藏  举报