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?
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
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.