L
levent
What is an elegant way (using std::stream's) to extract number of
white-space separated entries in a given line of a formatted text file?
e.g.: Take this section of a file,
1 2.78 4 5 -0.003 <tab> 7.1d5
9 40 <tab> 2.e5 -10
....
and the code will return 6 for 1st line, 4 for next line, etc...
- slyi
white-space separated entries in a given line of a formatted text file?
e.g.: Take this section of a file,
1 2.78 4 5 -0.003 <tab> 7.1d5
9 40 <tab> 2.e5 -10
....
and the code will return 6 for 1st line, 4 for next line, etc...
- slyi