is it possiaBLE to cal a "class function "through.....

is it possiaBLE to cal a "class function "through structure node variable. if yes how can we call?
using link list
like this :

while(cur->nxt!=NULL)
{
cur->showdata(); // <<<<<
cur=cur->nxt;
}
If cur is a pointer to a class with a showdata() method, that is fine.
what does it mean cur is a pointer to a class .? cur is already a pointer variable of structure .

it gives me the error that " struct node has no member named 'show data' "
Topic archived. No new replies allowed.