Need help arrays.

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.
if this is all you have you better start here
http://www.cplusplus.com/doc/tutorial/program_structure/
its just the functions, i dont know what its asking for exactly.
i dont know what its asking for exactly.
Then go through each part slowly, one step at a time:
Call a function that fills the array with random integers. (You can decide on the range.)

1. Call a function
2. that fills the array
3.1 with random integers.
3.2 (You can decide on the range).

Which part do you not understand?
Topic archived. No new replies allowed.