So I was experimenting with class composition on Code::Blocks, and for some reason when I compile this code I get "Lenny the Cowboy was born on 12093123/1203812038012/1203981 (some random digits), when I actually want it to be: 7/9/97. I get no errors when I run this simple program. Anyone know what I'm doing wrong?
In lines 10 - 12, it looks as though your constructor is supposed to be setting the data members to the values passed in as parameters. In fact, you're doing exactly the opposite.