Write declarations for each of the following functions. When you write these declarations, use the name of the function to indicate what the function does.
(a) A function named compare
that returns a bool
and has two parameters that
are references to a class named matrix
.
(b) A function named change_val
that returns a vector<int>
iterator and
takes two parameters: One is an int
and the other is an iterator for a
vector<int>
.
/* compares the two matrices */
bool compare(matrix &m1, matrix &m2);
/* changes the value of the int pointed to by the iterator */
std::vector<int>::iterator change_val(int i, std::vector<int>::iterator it);