我是C++的新手,我对数组和指针感到困惑.有人能告诉我如何正确删除指针.例如,
int *foo; foo = new int[10]; delete foo;
要么
delete [] foo;
谢谢.
c++
c++ ×1