I have to build a Your program that :
Declares a 2-dimensional array of 8×8 integers (8 rows, 8 columns).
Call a function that fills the array with random integers. (You can decide on the range.)
Call a second function to print out the contents of the array. It should look like a grid, with some space between each element and a line break after each row of data.
Call another 1, 2, or 3 functions (up to you) that output the sums of each row, column, and the two major diagonals. That should be 18 outputted sums in all.
I'm taking a 101 c++ class and this is the last topic. I find the difficult since i am beginner, can anybody help me with this?
1 2 3 4 5 6 7
|
#include <iostream>
using namespace std;
int main (){
int integers [8][8];
|
this is what i have wrote so far not much i know.