Z
zl2k
hi, there,
I got the "request for member which is of non-class type error" for
the following piece of code:
for (vector<obj*>::iterator it = objVec.begin(); it < objVec.end(); +
+it){
*it->Function(); //the code will be fine if changed to (*it)-
What does the error message mean? What's the difference between *it->
and (*it)->? Thanks and have a good weekend.
zl2k
I got the "request for member which is of non-class type error" for
the following piece of code:
for (vector<obj*>::iterator it = objVec.begin(); it < objVec.end(); +
+it){
*it->Function(); //the code will be fine if changed to (*it)-
}Function();
What does the error message mean? What's the difference between *it->
and (*it)->? Thanks and have a good weekend.
zl2k