I’m a beginner, I Make a treap tree , I make a class type and pointer to this class , when I used “this keyword” to point to next element this appeared
compiler error: “expression must have pointer-to-class type”
this->right->search_el(k,p);
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.
It means that you apply
operator ->to a non-pointer type. You probably want:Since
thisis a pointer,rightseems like the only candidate that is not a pointer. In C++, you access members of a class through.if you have an instance or->if you have a pointer to an instance.