Original Post
i have a struct that reads
struct Polygon
{
int nidx;
int* index;
};
but when I try to create an array like this:
Polygon m_pol = new Polygon;
I get an error saying there's an error before the [. Is it something to do with the pointer in the struct/ do I need a class and constructor? What actually is the problem? regard... JPulham