Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > linked list hel...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 829 of 913
Post > Topic >>

linked list help

by heather.eslinger@[EMAIL PROTECTED] Nov 10, 2006 at 12:07 AM

I'm attempting to use the linked list class in the Eiffel Base, and am
having problems.  I'm hoping someone can help.  Basically, I'm reading
in a file and adding names to the list, but every time I add to the
list (using force or extend), it writes over the entire list and makes
every entry the name I just read.
Example:

my_list:LINKED_LIST[STRING]
from
input.start
to
input.exhausted

do
input.read_line
my_list.force(input.last_string)
input.forth
end

if my input was
smith
johnson

Then the list would be johnson, johnson.  instead of smith, johnson
Why?




 2 Posts in Topic:
linked list help
heather.eslinger@[EMAIL P  2006-11-10 00:07:28 
Re: linked list help
Jim Cochrane <allergic  2006-11-10 09:58:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:44:15 CDT 2008.