I have to write a C++ program that inputs a file containing three arrays which need to be added together. The file needs to have its dimensions on the first line and then the three matrices following it. I can't seem to get off the ground with this. I know how to sum matrices and I know how to input files but I don't know how to specify an array size insed a file. An example would be: 2 3 <-this is the dimension of the array (2 x 3)
1 2 3
4 5 6
Any help would be welcomed.