I need to store elements of a c array of strings in a vector.
Basically I need to copy all the elements of a c array into a vector.>
vector
You use the insert method to add content to a vector. Take a look at the sample fragment from here: http://www.cplusplus.com/reference/stl/vector/insert/