Re: Singly Linked LIst and Objects Newbie Question



I might be missing something totally obvious here, but where in your
code are you setting the 'head' of the list? This is something that
should probably go into the block where you check for the 'first
value'.

Another sidenote: you should stick to the standard conventions of CS,
like that the first element of a list has the index '0', not '1' as in
your case (see for instance arrays, the java.util collections, ...)

/philipp

.



Relevant Pages

  • Re: Question about 1901 Census
    ... family living at 25 Stanley Street but a number of them are missing & ... One strange thing is that there is no 'head' of the house shown at the ... His son's entire family also seem to be missing (Robert b ... Eve McLaughlin ...
    (soc.genealogy.britain)
  • Re: So hurt! was: Re: Friends
    ... It hasn't been the same with you missing. ... worry your adopted Mom like that. ... I know your adopted brother has been concerned too. ... What better thread to poke me head out than this one, ...
    (alt.med.fibromyalgia)
  • Re: Suckling pigs head
    ... Felice Friese said... ... tongue was missing and there was only a bit of brains (too little, ... I deboned - de-jawed - actually, the head, which was not such ... And miles to go before I sleep, ...
    (rec.food.cooking)
  • Re: Suckling pigs head
    ... tongue was missing and there was only a bit of brains (too little, ... considering it is just a suckling pig). ... I deboned - de-jawed - actually, the head, which was not such ... meat by the generic term "snoots" these days. ...
    (rec.food.cooking)
  • Re: Prolog list question
    ... first element that, ... begin_with/2 on the tail of that list, ... underscore need not match the same thing. ... the new list's head. ...
    (comp.lang.prolog)