Configuration Puzzles C++