3 回答
TA贡献1802条经验 获得超6个赞
deletenew.
delete []new [].
deletenew []delete []new
TA贡献1893条经验 获得超10个赞
delete[]deleteoperator delete[]operator delete
typedef int array_type[1];// create and destroy a int[1]array_type *a = new array_type;delete [] a; // create and destroy an intint *b = new int;delete b;// create and destroy an int[1]int *c = new int[1];delete[] c; // create and destroy an int[1][2]int (*d)[2] = new int[1][2];delete [] d;
newnew type[]newoperator new[]N * sizeof(ElementType)operator new[]size_t
newoperator newsizeof(T)
delete[]operator delete[]
deleteoperator deleteoperator deleteoperator deleteoperator deleteoperator deletesize_t
- 3 回答
- 0 关注
- 495 浏览
添加回答
举报
