I know this already but my question was:
Suppose I have a vector object with unknown number of elements and I have 10 sentences to input by using the push_back function for vectors. Then how do I do This.
If you already know vector and getline() and also push_back() what else do you need to know? The question is not very clear as to what is the actual difficulty.