I got an error when I tried the above. I should mention that I'm declaring this variable within a class.
"invalid in-class initialization of static data member of non-integral type 'float*'...
User Profile
Collapse
-
-
Memory problems in c++
First, I'm running dev c++ of a windows machine.
My problem:
I declared the variable distances as follows...
float distances[3000][3000];
but when I try and run the program it crashes. If I reduce the size of the array my program will run (unfortunately I need an array at least this large). Anyone have any suggestions on how to increase the amount of memory...
No activity results to display
Show More
Leave a comment: