錯誤
||=== Build: Debug in proj1 (compiler: GNU GCC Compiler) ===|
obj/Debug/main.o||In function `__static_initialization_and_destruction_0':|
relocation truncated to fit||R_X86_64_32 against `.bss'|
relocation truncated to fit||R_X86_64_32 against `.bss'|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
我的代碼
#include<iostream>
using namespace std;
int a[99999999999999];
int main()
{
return 0;
}
99999999999999*4/1024/1024/1024=372529G=363.8T
可以將數據保存在數據庫中或文件中進行處理。
保存在文件的話可以一個對象保存為一行,一行一行讀取並處理。