lundi 2 décembre 2019

Erasing a line in vector which includes specific character

I am doin c++ homework for my school and my vector has an element which is like:

"00026324 John Adams, -1" i need to delete the element completely if it includes -1 as a string so how can i erase it from the vector. By the way i can't upload my code because of plagiarism issues. Thank you

Aucun commentaire:

Enregistrer un commentaire