I am trying to initialize an array in Visual C++.
In my header file, I am declaring the array like this.
int pawnSquareTable[64];
In the cpp file where I include the header file, I am initializing the array in the constructor of the class in this manner:
pawnSquareTable[64]={0,0,1,2.....64 values};
However, VC++ is giving me a Too many initializer valueserror. Why is this happening?
EDIT:
The red squiggly line underlines the second element of the array.
64and you are probably initializing it more elements.