1std::string str;
2// Read the next line from File untill it reaches the end.3while (std::getline(in, str))
4{
5// Line contains string of length > 0 then save it in vector6if(str.size() > 0)
7 vecOfStrs.push_back(str);
8}
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content