|
Hi,
I think i saw a solution of this problem on this forum but i can't find that post, so i'll ask again.
my problem is that i have a table that i converted to hash, the table looks something like this:
x => y
23 32
12 45
12 35
12 67
45 34
34 90
34 55
35 53
35 44
44 41
...
now when i try to search for #12 it returns only the #67 but not 35 and 45.
why is that, and how can i solve this problem,that, at the end of my search it returns all the matching results.
also i'm having problems with creating a loop that would find for example #12, return the result(s) for #12 and start the search again with that result(s) (example: 12=>35, 35=>44, 44=>41). and that it writes down the results of each search.
thank you ,
robert
|
|
|
you are writing into the same key many times.
every time you write to a given key after it has been created you overwrite whatever was there before.
|
|
|
ok but how to loop the search so that it searches the file once again with the search results
|
|
|
|
|
|
|
// |