在C++中,为什么动态初始化的数组无法初始化其它值?int *a = new int[10];int *a = new int[10](); // 只能初始化为0是因为语法上不方便,还是堆中存储有局限性? [解决办法]楼主只能用 c++11 的新语法了,旧的不支持你想要的功能。