what is good practice for generating verbose output? currently, i have a function
bool verbose; int setVerbose(bool v) { errormsg = \"\"; verbose = v;
You could use log4cpp