The joke is a pun.  The phrase 'rotten to corps' sounds like 'rotten to the core' which would mean somebody has a 'cool', 'bad guy' attitude or behavior. The word 'corps' means a main subdivision of an armed force in the field, consisting of two or more divisions.
She was only a Colonel ' s Daughter , but she was great to the navy and rotten to the corps .