Category : multidimensional-array

here is an example of the problem I am having: #include <stdio.h> #include <iostream> template<std::size_t U, std::size_t V> void func2(int (&twoDArrayA)[U][V], const int shift){ const int length = 1 << shift; int twoDArrayB[length][length]; //Successful } //template<std::size_t A> <– Tried to solve the problem by adding this void func1(const int shift){ const int length = 1 ..

Read more