我使用Visual Studio 2008.我已动态声明变量big_massive:
unsigned int *big_massive = new unsigned int[1073741824]
但是,当我尝试调试此程序时,我得到以下错误:无效的分配大小:4294967295字节. 我希望有任何途径可以避免这种错误吗?谢谢!
c++ allocation dynamic
allocation ×1
c++ ×1
dynamic ×1