I have a problem where I need to be able to create an array using the data from the text file. The first line of the file is the array size and the following values need to be put into structs. There may be more than one array per txt file.
The data file looks like this:
3 3
90 35d43m9s45d45m19s8 36d46m19s51d25m18s45 36d46m19s11d25m39s
7 35 23 9 25 43 9 25 25 43 9 35 33 39 30 32 33 9 17 33 22
6 15 43 19 25 43 29 108 39 33 40 25 23 29 565 25 23 29 15 41 19
4 4
100 15 43 19 25 43 29 5 39 33 40 25 23 29 6 25 23 29 15 41 19 90 32 33 9 17 33 22
8 35 43 9 45 45 19 7 36 46 19 51 25 19 10 36 46 19 11 25 39 5 22 46 39 12 25 29
80 35 23 9 25 43 9 7 25 43 9 35 33 39 6 32 33 9 17 33 22 2 39 38 29 37 23 12
9 12 53 49 18 33 22 8 44 33 9 22 33 22 97 38 38 9 47 36 26 5 52 53 9 57 53 22
The d m & s should be in the file as shown in the frst line.
I am new to C++ and this problem is kicking my butt. Any help would be great