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[2
Add extern to the declaration in the header file.
extern
extern int lettersArr[26];
(Also, unless you plan to change the array, consider also adding const.)
const
The definition must have a type. Add int (or const int):
int
const int
int lettersArr[26] = { letA, /*...*/ };