#include<stdio.h> class A { //int *b[65536][32][32]; int* (&b)[65536][32][32]; int m_t; public: A(): b(* new int*[1][65536][32][32]) { // b = new int*[65536][32][32]; } int foo(); }; int A::foo() { m_t = 100; // b = new int*[65536][32][32]; } int main() { A* pa= new A(); pa->foo(); return 0; }
直接申请一个65536*32*32的大数组,会出错?!
时间: 2024-12-21 12:10:06