Home > Back-end >  The question of the vector
The question of the vector

Time:09-25

Oriented programming topics to write a simple bank station system
Using the vector set up two containers on your turn to delete the first element found unable to add new element system seems to be out of memory or cross-border prompt I don't know what reason be

Please big can help me have a look at what the

CodePudding user response:

Problem has been resolved but also don't know how to delete,,

CodePudding user response:

If just delete the first element is very simple direct a.e rase (a. do v.begin ());

CodePudding user response:

CodePudding user response:

a: where are the reference name on the second floor response:
if just delete the first element is very simple direct a.e rase (a. do v.begin ());

Whether directly deleted or iterator is normal after the final finish delete but to v1. Push_back () will be out of memory error will appear problem, want to know how to solve this

CodePudding user response:

I'm sorry, I still don't understand your problem,
But in theory push_back again after deleting should not be an error

CodePudding user response:

a: where are the names refer to 5 floor response:
I'm sorry, I still don't understand your problem,
But theoretically to the push_back should not be an error after deleting

Has been solved or very thank you for your specific because I feel very complicated I don't know exactly to display and to remove and then input seems to be the subscript overflow infinite loop?? I say this dear say not clear or very thank you for your sent me to a blog you can see the difference between the two in the call may be you can understand
  • Related