載點
https://docs.google.com/uc?id=0B4PwTcFHZPWbNDY0NzNhZjgtNmVhNS00YzQ0LWFhZGUtYjRhZTk5MTE0YTll&export=download&hl=zh_TW
外觀
關鍵程式碼:
struct Node
{
int data;
Node *next;
};
Node *head,*tail;
Node *newptr;
newptr->data=StrToInt(InputBox("輸入資料",str,""));
newptr->next=NULL;
if(head==NULL)
head=newptr;
else
tail->next=newptr;
tail=newptr;
輸入資料後使用next 做連結
沒有留言:
張貼留言