cpp simple tasks