Problem
In C++ for the classic graph problem "Islands", how would you program it so that the program would be able to receive multiple matrices and output the counts for each into an array? Example:
matrix 1 -> island count func -> add # of islands to array
matrix 2 -> island count func -> add # of islands to array
print -> island count array.