Eiffel Help for Beginner? Please?
I am currently working on a small program for school for standard input/output. I am having trouble with read_word (or read_line) and then last_string. Sometimes it uses the most current last_string instead of the one to which it was assigned. Can anyone please help me with this? Thanks --Great_Jasmini (not-so-great-at-eiffel-programming)
PS. I think the root of my problem is linked with another little sample problem that I dont understand. Why is it that if you do: local my_array:ARRAY[STRING] do create my_array(1,2) from i:=1 until i=10 loop
io.read_word my_array.force(last_string, i) i:=i+1
when i run code similar to this and then type in different words for the array, when i print off the array it is all the last word. Any help? Please? Thanks in advance--Jasmine