Comment Re:The algorithm (Score 1) 89
"I strive to write "perfect" code if I have the time. It's not that hard, just double check and try to run the edge cases in your head whenever you do something complicated."
I highly doubt you can write a non-trivial C or C++ program without bugs, or really any language for that matter. I'm not talking about thousands of lines either. 100 or so should do it. The fact that you don't mention any kind of requirements spec, perhaps with the aid of some CASE tools, or at least a testing and feedback method, coupled with the fact that you think that you can do it "in your head" makes it clear that you have no idea how to develop code.