I have the following code:
#include <iostream>
using namespace std;
int main()
{
unsigned int endx = 5;
unsigned int endy = 5;
unsigned int endz = 5;
int Matrix[endx+1][endy+1][endz+1] = {};
return 0;
}
I get
error C2057: expected constant expression
Ok, how can I create the Matrix like shown in the code without vectors or dynamic allocated array?