Error Message

Hey guys, I am getting an error message that say my first "userval=read_element();" is not valid since "read_element();" is supposedly not declared in the scope. It has yet to pick on the second statement that is identical. How do I fix this? (I do have my read_element() function written already and can post it if needed. thanks!

void LList::Read(){
//Pre:
//Post:
element userval;
listnode*temp;
Clean();
cout<<"enter elements, "<<SENTINEL<<" to stop";
userval=read_element();
while(userval != SENTINEL){
temp= new listnode;
temp->data=userval;
temp->next=head;
if (head ==NULL)
tail=temp;
else
;
head=temp;
userval=read_element();
}
}
If the compiler says it is not declared in the scope, then you'd better believe it.
Topic archived. No new replies allowed.