I was bored so in the middle of my simple program I decided too mess it up to see what would happen and:
!!!! WARNING !!!!
This will seriously slow your computer
so follow these steps to escape:
1:Press ctr+alt+del
1 1/2:Go to the processes tab
2:Find your project name (eg. project 1)
2 1/2:Click on it
3:End the process via the end process button
I don't know if this works on macs or unix systems
so ... use wisely
If you try to make gigantic arrays (like int giantarray[100000000][1000000000][1000000000][100000000][100000000];) it can do some really wierd things to your computer. especially if you thy to create a bunch of them in an infinite loop.
Yes there are but the point was I did it while messing with my array ... Why are you so cruel computer quip?
Also if you have a semi fast computer that your not afraid of locking up go through it it outputs .... interesting things like symbols ... and halfway through it looks very organized ... why does it do that?
rvbman47, that's not a valid sentence. It would be:
int ***** pGiant = newint[100000000][1000000000][1000000000][100000000][100000000]
I don't understand. Are you saying that his version would not run because
The OS would stop you before you allocated that much onto stack >.>
? Or are you saying that his version is not valid C++?
If it's the first one, then your version would do the same thing, since when you say newint[100000000][1000000000][1000000000][100000000][100000000], you are allocating the memory anyways.
If it's the second one, you're wrong, because his version is perfectly fine C++.
Unless you're saying that if you allocate the memory on the heap, then the OS won't stop you, whereas on the stack it will?
I bet that neither automatic and dynamic memory will find that much contiguous memory
Anyway, int ***** pGiant = newint[100000000][1000000000][1000000000][100000000][100000000] is wrong: http://www.cplusplus.com/forum/articles/7459/