View Single Post
Join Date: Dec 2008
Posts: 967
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 126
firstPerson's Avatar
firstPerson firstPerson is offline Offline
Posting Shark

Re: need help with prime

 
0
  #7
Dec 29th, 2008
Originally Posted by Freaky_Chris View Post
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
hmm. not sure what you mean. I know the basics about pointers but haven't learned what new is or does. Care to explain?
Reply With Quote