Comparing integer and pointer

I am writing code to compare a zipcode integer input (int z) and the zipcode of the input ZNode object *n. When comparing them I keep getting error of comparison between z and ZNode n. How can i compare an integer and a pointer?
Here is my code:

ZNode AVLTree::*findZip(int z, ZNode *n){

if(z==n->zip || n==NULL){
return(n);
}
else if(z < n->zip){
findZip(z, n->left);
}
else if(z > n->zip){
findZip(z, n->right);
}
}
need to see the variable in the class also. Is it a pointer, do you need to double dereference it?

Topic archived. No new replies allowed.