I know this (*x).y is like x->y in c++, but this code is wired for me. can anybody help me Or give me a reference about it?
I know this (*x).y is like x->y in c++, but this code is wired
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Overall, using the terms in the variable names, it stores the return-value of the
currentHtml()function into themanifest‘scurrentItem‘sfileContentvariable.To break it down:
There is a method,
currentItem()in yourmanifestclass that will return the, well, “current item”. The(ManifestItem*)will cast this returned item to aManifestItemdata type.The rest is, I hope, self-explanatory: