Please I'm a beginner and I would like an answer to two questions
1.) what is the meaning of -> in C++
2.) Also, what is a custom mask as it applies to image processing?
Printable View
Please I'm a beginner and I would like an answer to two questions
1.) what is the meaning of -> in C++
2.) Also, what is a custom mask as it applies to image processing?
Ok, I can answer 1) -> is used to dereference a pointer and then access a member.
So say you have
it is the same as doing (*myptr).someMemberFunction()Code:someObj * myptr = new someObj;
myptr->someMemberFunction();
QuantumPete
I have absolutely no idea of "custom mask as it applies to images" - that requires further context to clarify that - it could mean MANY different things [if this is a homework question, it's probably a explained in some sense in the literature you have for the course, and that gives it the right context].
a->b is a shorter/simpler version of (*a).b
--
Mats