How do I enter below 2 sentences in a vector object?
It is cold today.
Winter is about to start.
Please help. Thanks.
I found the answer.
Actually I need to declare a string variable say for instance:
string description;
Then I can read a line from a text file using getline as under:
getline(infile, description);
After than I can push_back() into vector as under:
itemDesc.push_back(description);
Thanks.