阅读背景:

使用巨大的向量在C ++程序中冻结

来源:互联网 

I have an issue with a C++ program. I think it's a problem of memory. In my program i'm used to create some enormous std::vector (i use reserve to allocate some memory). With vector size of 1 000 000, it's ok but if i increase this number (about ten millions), my program will freeze my PC and i can do nothing except waiting for a crash (or end of the program if i'm lucky). My vector contains a structure called Point which contain a vector of double.I have an issue with a C++ program. I think it'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: