I have tried reading different descriptions of how the declarations of these variables are made and how they operate, but they don't seem at all clear to me. According to how I interpreted the tutorial what I have below should not result in an error, yet it does. Can somebody please tell me what I am doing wrong? Thanks.
I realize that don't have an entire program here. My job for now is to build a class that meets certain specifications.
staticconstint maxRectangles; // Static data member not allowed in local class
staticint rectanglesCreated; // Static data member not allowed in local class
staticdouble avgPerimeter, avgArea; // Static data member not allowed in local class
double length, width;
char border_character, fillCharacter;
constint MAX, MIN;