A class ArrayMax contains a square matrix which finds the largest element in each row. Some
members
of the class are given below
Class name
: ArrayMax
Data member/instance variable:
all
: array to store integer elements
m
: to store the order of the matrix
Member methods/functions:
ArrayMax(int mm) : parameterised constructor to initialize the data member m=mm
and declare the array
vold readarray() : to accept the array elements
void largel)
: finds and displays the largest element in each row with an
appropriate message
vold display()
: display the array elements in matrix form.
Specify the class ArrayMax, giving the details of the constructor(), void readarray(), void largel).
and void display(). Define the main function to create an object and call the functions accordingly
to
enable the task.
Answers
Answered by
2
Answer:
go to brainy e there will be a question paper
take in that answers
Similar questions