C++ 查看new空间大小:修订历史

跳到导航 跳到搜索

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2024年12月4日 (星期三)

  • 当前之前 12:432024年12月4日 (三) 12:43BrainBs 讨论 贡献 552字节 0 无编辑摘要
  • 当前之前 12:432024年12月4日 (三) 12:43BrainBs 讨论 贡献 552字节 +552 创建页面,内容为“ #include<iostream> <pre> typedef struct _RTL_HEAP_ENTRY { unsigned int Size; short Flags; short AllocatorBackTraceIndex; union { struct { unsigned int Settable; long Tag; } s1; } u; } RTL_HEAP_ENTRY, *PRTL_HEAP_ENTRY; int main() { int a; int *p = new int[10]; PRTL_HEAP_ENTRY pHeapEntry=(PRTL_HEAP_ENTRY)p-1; std::cout << "size: " << pHeapEntr…”