i have been searching for ages on how to split string that is separated by delimeter and storing them into vector pair.
For example, i have a string that contains the following information
"3:4"
and i have the following vector
vector<pair<int, int>> vect.
How do i split the string that is separated by the delimeter and storing each individual data into the vector pair such that the first int contains 3, and the second contain 4.
then you should simply store the value of string before ':' int first int and value after that in the second int (ofcourse after converting them to ints)
check yourself by taking any example and going through the code stepwise: eg, check yourself for the string "234:987", i hope you will get the intuition.