reading code which can't possibly compile
OK, so I had a few problems translating the code over to the Arduino environment, but just because you can't test the original code doesn't mean it was shoddy enough to poke holes in it.
I'll tell you what, it was written and compiled using Bloodshed Dev-C++, so it was compiled using gcc, essentially the same compiler as the Arduino environment compiles with.
You know, it took me ages to hack out that original code and the sense of accomplishment I felt when I finally got it to do what I wanted it to do was destroyed in mere minutes on here. You had an excellent opportunity to help a newcomer to the Arduino platform embrace it, but instead you all decided that you'd rather just sit there poking holes in my code.
I think it's not my coding skills that need more polishing as much as your ability to render effective assistance.
EDIT: Anyway, as I said, I'm done with this place. Lock the thread, delete my account and I'll move on somewhere else.