0

I have an input string of integers separated by space.

string input = "116 119 220 250";

How do I split this string and store each number in vector of integers?

codernaut1
  • 39
  • 7
  • 1
    Does this answer your question? [Right way to split an std::string into a vector](https://stackoverflow.com/questions/5607589/right-way-to-split-an-stdstring-into-a-vectorstring) – Ghasem Ramezani Dec 19 '20 at 13:10
  • 1
    Look that [Parse string to vector of int](https://stackoverflow.com/questions/20659066/parse-string-to-vector-of-int) – Vroomy Dec 19 '20 at 13:13

0 Answers0