cpp working