Hey guys,
I'm doing a project where I have to take five very large arrays and sort them.
But, I'm getting stuck here.
Here's the part that's bombing out.
This results inCode:#include <stdlib.h> #include <stdio.h> #define BIG 1000000000 int main() { int a[BIG][7]; float b[BIG]; float x[BIG]; float y[BIG]; double c[BIG]; return 0; }
In my full project, the only error I get is:Code:array_test.cpp: In function `int main()': array_test.cpp:8: error: size of array `a' is too large array_test.cpp:12: error: size of array `c' is too large array_test.cpp:9: error: size of variable `float b[1000000000]' is too large array_test.cpp:10: error: size of variable `float x[1000000000]' is too large array_test.cpp:11: error: size of variable `float y[1000000000]' is too large
segmentation fault
I've compiled using gcc and g++ on Red Hat Fedora 1.
Is there any way for the arrays to accept and store this? Thanks for the help!