Here is my code
int windowWidth = 80;
int windowHeight = 46;
warning: non-static data member initializers only available with
-std=c++11 or -std=gnu++11
The variables for width and height must be constant and static, since they should be available during compile time. Otherwise, you could use a vector and allocate the memory dynamically in the constructor. Then you could specify the size of the windowMap as arguments, thus making the class more reusable.
The simple changes are:
const static int windowWidth = 80; const static int windowHeight = 46;