64,647
社区成员
发帖
与我相关
我的任务
分享
// 这时太不需要硬记数组的长度,如把数组作为参数传给函数时,也不需要传数组的长度了,直接由系统提供的函数就可取得。
for (int i = 0; i < array_length(ns); ++i) {
std::cout << ns[i] << std::endl;
}
HeapSize Function
Retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
SIZE_T WINAPI HeapSize(
__in HANDLE hHeap,
__in DWORD dwFlags,
__in LPCVOID lpMem
);