Something like this seems to work:
Code:
class PointInPolygon
{
public:
//int A[2100][2100];
int A[100][100];
static const string arr[3];
string test[3];
const int dx[4];
int dy[4];
PointInPolygon() : A(), dx({1,1,0,0}), dy({0,0,1,1})
{
test[0] = "Interior";
test[1] = "Boundary";
test[2] = "Exterior";
}
};
const string PointInPolygon::arr[3] = {"INTERIOR","BOUNDARY","EXTERIOR"};
Watch out for those big array numbers for A, you may not have enough stack space for an array for that size. Also do you really need an array of this size in each instance of your class, or can it be shared by all instances of your class (static)?
Jim