defination from msdn:
The delete operator destroys the object created with new by deallocating the memory associated with the object.
------------------------------------------------
however your array is array of primative type bool
now try this
Class Bool
{
public bool myBool;
};
Bool *flag2 = new Bool[8];
delete [] flat2;
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!
You may say I'm a dreamer
but I'm not the only one...