C++ examples showing why global variables are evil