I think it is a simple question for you....i am pretty new in c++.....
So i have a vector defined like this:
vector<vector<float> > big_vector;
I read a file and initialized this vector, then the big_wector has about 200,000 elements in it. each is a vector < float >
Then I wanted to modify the elements in big_vector, for some elements I need to resize them first,(e.g. from 0 to 300)
big_vector[i].resize(new_size);
When I ran the program, first it went well, after some modifications, a "segmentation fault" occurred at the line above.......
Could somebody help me out? Thanks in advance...
Thanks for answering me, I have revised my question.