I'm trying to get this matrix and print it out in the another function. The problem is that is impossible. I tried to solve it with ** and * but I got only the adress not the value but I cannot get the normal values as this in matrix 5x5. Can someone explain me what I do in a wrong way?
size_t matrix[5][5] =
{
{1, 16, 20, 23, 25},
{6, 2, 17, 21, 24},
{10, 7, 3, 18, 22},
{13, 11, 8, 4, 19},
{15, 14, 12, 9, 5},
};
set<bool> set1 = iterateover((size_t**)matrix)
std::set<bool> iterateover(size_t** array)
size_t numberofrows = sizeof(**arrayy) / sizeof(arrayy[0]);
size_t numberofkols = sizeof(*arrayy[0]) / sizeof(arrayy[0][0]);
std::set < bool >myset;
for (size_t i = 0; i < numberofrows; i++)
{
for (size_t j = 0; j < numberofkols; j++)
{
std::cout << arrayy[i][j] << std::endl;
return myset;