Hi everyone,
I'm writting a function like this :
in this function i want to call another function in the Mesh class, it's the function shown below:Code:void GLMesh::convertToDiffCoord(Mesh *m)
I want to use the object that is pointed by *m to call the function, so I wrote:Code:list<Vertex*>* get_vertices(void) const;
I keep getting error message saying:Code:void GLMesh::convertToDiffCoord(Mesh *m) { list<Vertex*>* v = *m.get_vertices; }
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.



LinkBack URL
About LinkBacks


