1rst Thanks too much to "John Matthews" this two solution add to me
good background about what is the problem was


> Or get rid of the problem altogether so you don't have to 'remember'
> to do anything, and change the containing struct:
>
> struct maiN {
> struct sub s1; /* changed from pointer to the object itself */
> int c;
> };
>
> Making the code in the OP work as expected (changing the redirection of
> course):
>
> int main()
> {
> struct maiN s0;
> strcpy(s0.s1.name,"hi man ");
> return 0;
> }

2nd : no the target of my code is to access a variable from it's
parent and child class so I use pointer

Reply via email to