C++ Logica