advanced cpp homeworks and works