C + + code for LP3 in the Complutense University