Hi everyone,
I'm writting a function like this :
Code:
void GLMesh::convertToDiffCoord(Mesh *m)
in this function i want to call another function in the Mesh class, it's the function shown below:
Code:
list<Vertex*>* get_vertices(void) const;
I want to use the object that is pointed by *m to call the function, so I wrote:
Code:
void GLMesh::convertToDiffCoord(Mesh *m)
{
list<Vertex*>* v = *m.get_vertices;
}
I keep getting error message saying:
error C2228: left of '.get_vertices' must have class/struct/union
1> type is 'Mesh *'
1> did you intend to use '->' instead?
which I don't understand.
I'm a rookie in C++ programming, I would appreciate if any of you can give me some help.