View Single Post
Join Date: Apr 2008
Posts: 670
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: need help with prime

 
0
  #6
Dec 29th, 2008
Static memory space is generally very limited, if you want to create large array sizes then you need to use dynamic memory.
  1. __int64 *array = new __int64[2000000];
But be sure to delete the array afterwards
  1. delete []array;
  2. array = NULL; // to make sure you do not use the pointer

Chris
Last edited by Freaky_Chris; Dec 29th, 2008 at 3:59 pm.
Knowledge is power -- But experience is everything
Reply With Quote