C++ candy