Problem passing a char**

I am trying to do something like

char** readfromme(){}

main(){
struct stopping{
char**category;
char**stop;
};


stopping.category=readfromme();

}

but I am getting an error that says a non static member reference must be relative to a specific object. Any help would be great, thanks.
Last edited on
You shall define an object of type stopping and use it that to point its member category. For example


char** readfromme(){}

main(){
struct stopping{
char**category;
char**stop;
} a;


a.category=readfromme();

}
Thanks so much for your help!
Topic archived. No new replies allowed.