I\'m currently in the process of learning C++, and because I\'m still learning, I keep making mistakes. With a language as permissive as C++, it often takes a long time to f
Enable maximum compiler warnings (that's the -Wall option if you're using the Gnu compiler).
-Wall
'Lint' is the archetypical static analysis tool.
valgrind is a good run-time analyzer.
valgrind