Minor fixes on C++ ConsoleInput sample class.