I have a file full of lines in this format:
1 - 2: 3
I want to only load numbers using C++ streams. Whats the most elegant way to do it? I
I think this one would be the fastest -yet elegant- way:
int a, b, c; scanf("%d-%d:%d", &a, &b, &c);