Hi, I am currently writing a program that requires me to take values from a text file and store them in an 2d array, I am quite new to c++ programming so I am not sure how to do it.
My text file (posvalues.txt) looks like this:
0 0 0
5 0 5
10 0 10
15 0 10
20 0 10
And I need those values in a 3x5 array. Any help would be very much appreciated.
Thanks