C++ - Simple application used to convert cout statements to debug statements