jjzjj

currentByteLength

全部标签

C++:malloc 等同于 new 吗?

这个问题在这里已经有了答案:关闭11年前。PossibleDuplicate:Whatisthedifferencebetweennew/deleteandmalloc/free?我是c++小白,想知道是否memblock=(char*)malloc(currentByteLength);相当于memblock=newchar[currentByteLength]在C++中?