40
This is probably a really simple thing but I'm new to C++ so need help.
I just want to declare an array in my C++ header file like:
int lettersArr[26];
and then define it in a function in the cpp file like:
lettersArr[26] = { letA, letB, letC, letD, letE, letF, letG, letH,
letI, letJ, letK, letL, letM, letN, letO, letP, letQ, letR, letS,
letT, letU, letV, letW, letX, letY, letZ };
but this doesn't work.
Have I got the syntax wrong or something? What is the correct way to to this?
Thanks a lot.