undeclared identifier

I have included my class in the main.cpp file but I get this error.
error C2065: 'coordinate': undeclared identifier
error C2065: 'connectivity': undeclared identifier
I can't figure out why. I appreciate your help in advance,
Last edited on
coordinate and connectivity are local to the functions in which they are defined.
They no longer exist when those functions end.
And you wouldn't be able to access them from outside the funcion anyway.
Presumably you mean them to be members of the class?
Yes,
How can I access them?
Last edited on
By making them members of the class.
My question may seem silly, but can I define something like double **coordinate and int **connectivity in the private part of the class?
Last edited on
I can't comprehend your code and have no idea what it's up to so I'm not sure what's reasonable here. For instance I don't see where you're assigning any memory to m_data. And I assume this is just a placeholder: return gx1, gy1, gx2, gy2, gx3, gy3;
Topic archived. No new replies allowed.