I am facing problem to split my input in C++, for something similar to the Python split function.
The input is given as 1001-43 1003-45 1008-67 in different lines. I want to know how to take these inputs split by '-'
and store them in different variables.
In Python it's:
a, x = input().split('-')