New to this forum, but been browsing a few threads and seems like the best place to seek help.
I have an assignment to complete.
What I need to do is read in values from a .txt file and place these values into a matrix.
I have the values stored in a file called r.txt.
R is a matrix that is 4 columns by 28 rows
I was thinking of using a nested for loop to create the matrix and then read the vlaues from the file using fstream.
Would someone be able to provide me with some sor of starting point, or give me some help with this. I have spent the last week trying to figure it and and been playing around with the code to see if I can get it to work but to no avail.
Thanks for your time,