Parrallel Arrays

I'm having to write a program where we have an input file and we are suppose to store the date into 3 parallel arrays. Example here:

Sample input file (p1.txt)
3
1234 10.0 45
9999 20.0 40
2327 7.25 38

The first number is the number of employees. After that the numbers in the first column are the employee ID's, second column is hourly rate, and the third column is hours worked. I'm fairly confused on how I am suppose to store these into three parallel arrays and any help would be appreciated.

Thanks.

Three parallel arrays... as in 3 different arrays with the data in the same place for each array, or a single 3-D array? The first case is rather simple. Are you allowed to use the STL (i.e. vector) or are you limited to C-style arrays?
Topic archived. No new replies allowed.