??? 10/12/04 10:56 Read: times |
#79192 - RE: problem in link list Responding to: ???'s previous message |
hi,
xdata struct WindowList temp; temp=temp.Next;//this line is generating an error.'=' incompatible operand1) Always do copy-paste and put code between <PRE> and </PRE> 2) structure WindowList does not contain a member named temp.Next; 3) in case you meant temp.NextWindow so it is the pointer (see the asterisk in the structure declaration). But struct WindowList temp is the structure, not the pointer! So they are different types. If you need maintain the pointer then use xdata struct WindowList *temp; temp=temp.NextWindow;If you need to copy the whole structure then I suggest to use either memory copy function: xdata struct WindowList temp; memcpy(&temp, temp.NextWindow, sizeof(temp));or direct copy: xdata struct WindowList temp; temp = *temp.NextWindow; Regards, Oleg |
Topic | Author | Date |
problem in link list | 01/01/70 00:00 | |
RE: problem in link list | 01/01/70 00:00 | |
RE: problem in link list | 01/01/70 00:00 | |
RE: problem in link list | 01/01/70 00:00 | |
RE: problem in link list | 01/01/70 00:00 | |
RE: Cross-Posting | 01/01/70 00:00 | |
RE: problem in link list | 01/01/70 00:00 | |
RE: problem in link list | 01/01/70 00:00 | |
RE: problem in link list![]() | 01/01/70 00:00 |