Please help! R6010 -abort() has been called


The push_back of vectors for the first period works fine. But when I continue with period 2, surprise: R6010 -abort() has been called.

Could someone please tell me why can I push_back once but not twice?

Thanks in advance.

Last edited on
Can you put the whole code? I'll try help after compiling

Thanks for your quick reply. Actually, I just found out the reason: I missed one line in the code (by accident put "//" before it). So the program could not push_back more than once.

Now it works fine. Thanks again.
Topic archived. No new replies allowed.