method that returns a pointer

hello guys,

do you know how can I do a method that returns a pointer of some structure?

look what I did...

1
2
3
4
5
6
7
8
9
10
11
/*header*/

otherclass::aStruct* getPOinterOfStruct();

/*.cpp*/

otherclass::aStruct* getPOinterOfStruct() {
//blabla

return pointer;
}
That looks fine to me...what's wrong with it?
something much worse than that, I was just eliminating possibilities...

but thanks...
Topic archived. No new replies allowed.