bool sample::exist(NodePtr *p,int age){ bool isexist=false; NodePtr *n_ptr = p; for(;n_ptr!=0;n_ptr=n_ptr->Next) if(n_ptr->Info.Age==age) isexist=true; return isexist;)