KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to add values to the middle of a vector in C++? Say I have: vector <string> a; // a gets filled up with "abcd", "wertyu", "dvcea", "eafdefef", "aeefr", etc and I want to break up one of the strings and put all of the pieces back into the vector . How would I do that? the strings I break can be anywhere, index = 0, somewhere in the middle, or index = a.size() - 1 .
Tags (comma-separated)
Save Edits
Cancel