Get integers from line

040812151625

How can I get integers from this line with a rule...
For example 1. and 2. numbers will be my 1 integer:04
3. and 4. numbers will be my 2 integer:08
5. and 6. numbers will be my 3 integer:12
7. and 8. numbers will be my 4 integer:15
9. and 10. numbers will be my 5 integer:16
11. and 12. numbers will be my 6 integer:25
So you want pairs. If you have all the numbers stored in a std::wstring (or std::string, but you should always code in Unicode now), use the substr() method to extract two characters each time.
How are they stored/read in?
Topic archived. No new replies allowed.