Ops. I meant floats! & What do you mean? Because i put the array size = 100? Do I just change that to const int ROW = 10 and const int COL = 10? I have no idea what to do..
I'm still a newbie, but from my understanding, you're wanting to use a two-dimension array, since there are rows and columns. Since you know how many rows and columns you have, you can declare them as constants and declare your array as int numbers[ROWS][COLS];.
You'll then need nested for loops to write the numbers into the file (I believe).
Hopefully that is all correct and I haven't led you astray.
Now I have to find out how to add the rows and put their sums as a column at the end. I also have to ad the columns and put their sums in another row at the bottom. The corner where the sums meet would hold the total of all the sums. LOL Kill me now....
Now can someone help me out with my next question:
My assignment is to read in data from a .txt file into a 10 by 10 array. Then I am supposed to add each row and put their total on the end. Then each column needs added and the totals in a new row at the bottom. I also need the sums sum in the corner. Her is an example of what the output has to look like:
As you can I have not figured out how to sum the columns or rows. The book I go by has examples of how to do it but it does not have examples of how to do it with a .txt file being read in. I'm sure you can see why I'm lost! Any who, thanks in advance for the help!