I have a string which contains some number of integers which are delimited with spaces. For example
string myString = "10 15 20 23";
I want to convert it to a vector of integers. So in the example the vector should be equal
vector<int> myNumbers = {10, 15, 20, 23};
How can I do it? Sorry for stupid question.
See Question&Answers more detail:os