It's well and good that Arne's offered some code that works for you, but a) you still don't necessarily know how you'd write something that simple from scratch yourself, and
Huh? My problem is solved. I dont care to reinvent the wheel. This
isnt an academic test I'm taking, and you're not my instructor. Step
down just a bit, brother.
That code looked great to me from a teaching point of view, but it's not the sort of thing one normally would find in production code.
You're doing a good bit of criticizing, but not offering much. Maybe
you have a better algorithm or code snippet (see original request).
Or maybe not. Maybe its a secret?
In any case, you might do well to remember the adage about not biting the hand that feeds you
I missed the part where you were feeding me. I believe I did thank
Arne though.
People who act like you have here, reacting
defensively and insultingly toward people who are just making an honest
effort to help often find that eventually no one is willing to bother
helping.
Just "making an honest effort to help"? Really? Pete, you aren't
helping. Anyone can say "go figure it out yourself", and "try a
little harder". I suggest you be a little more honest, yourself. If
you dont know the answer, or dont want to help, then dont reply. Not
sure why this concept is so difficult for some folks. But it is the
Internet, so what can you do. I have no reason to even think you
could help.
Everyone can observe your behavior here, and many will choose to ignore requests from those who jump to false conclusions and make negative characterizations of those who are helping them.
Im sure there are some who will jump on your invisible bandwagon. Im
good with people ignoring me who consider help as "go try harder".
Anyway, this thread is over. Respond if you absolutely must have the
last word.