I know this is simple, I just can't recall the best way to do this.
I have an input like " 5 15 "
that defines the x and y of a 2D vector array.
I simply need those two numbers into int col
and int row
.
What's the best way to do this? I was attemping stringstreams, but can't figure out the correct code.
Thanks for any help!
See Question&Answers more detail:os