Very large array on the heap (Visual C++)

后端 未结 6 783
一向
一向 2021-01-22 21:00

I hope some one can help me, i\'m trying to create an int[400000000] (400 millions) array on my application using visual c++ 2010 but it generates an overflow error The same cod

6条回答
  •  隐瞒了意图╮
    2021-01-22 21:41

    I just found a very simple solution but i don't know if it is advisable

    int tab[400000000]={0};//global array
    
    int main(array ^args)
    {
    std::cout<

提交回复
热议问题