What is the C++ Implementation for This?

To just put each column into an array:

Pseudo code:

1
2
3
4
Created 6 arrays (probably an array of arrays
For each line in text file:
    Read 6 elements in each line
    Append (add) each element to its appropriate array


Or to do what your example shows (simply adjust the output)

1
2
3
4
Write out headers
For each line in text file:
    Read 6 elements in each line
    Write out elements with adjusted spacing


This second option does not actually create any arrays, just adjusts the display

If you want both (create arrays and display them in columns, combine both of the above.
Topic archived. No new replies allowed.