Download Acrobat
Transcript
Reminder: How To Use The Course Resources (2) procedure add (varkhead : NodePointer; ...w e a newNode n cla hen var : NodePointer); o m p s su ss m yo var las ch u t u p c t y e ) a a (g es ou plem ake do temps: NodePointer; c t s r a u d int ow en sur mak mi t yo sse s no begin t e e t u i h e e gon n no the tha it t yo tha u =mNIL) lasthen t n s c t If rife (head x e l y o o s am a r i em s (c des ou t y n:=e’newNode su ahead s a h eo if y em us wi welse m ou be e y th o s do r it ou begin n’t in temp := head; ) while (temp^.next <> NIL) do temp := temp^.next; temp^.next := newNode; end; newNode^.next := NIL; end; James Tam How To Succeed •Successful people Leonardo da Vinci J.R.R. Tolkien Bruce Lee Amadeus Mozart Wayne Gretzky James Tam Programming: Introduction