D
dor
i have an input file named input.txt where all the data looks like
this:
(4,10) 20
(5,3) 13
(7,19) 6
..
..
..
the numbers are random. i need to use every number in each line
individually as an integer. i know how to use ifstream to get every
line into a string variable, but i dont know how to manipulate it to
get three different int variables out of that one string variable.
so my string is string line = "(4,10) 20";
what do i do?
can somebody help me please?
this:
(4,10) 20
(5,3) 13
(7,19) 6
..
..
..
the numbers are random. i need to use every number in each line
individually as an integer. i know how to use ifstream to get every
line into a string variable, but i dont know how to manipulate it to
get three different int variables out of that one string variable.
so my string is string line = "(4,10) 20";
what do i do?
can somebody help me please?