objects as parameters

From: Anthony C (AntMJ2317_at_comcast.net)
Date: 05/14/04


Date: Thu, 13 May 2004 21:37:25 -0400

I wrote a simple game in c++ and it uses a class object(cat) that ive
custom made. My question is this, i do not want to put a lot of code
into main as the code becomes jumbled and very unreadable with 4 pages
of code. I need to know how to pass my cat object(for example Garfield
in this case) as a parameter into another function. I've tried a few
things, but obviously have had no luck, any help is welcomed :-)

        Ant



Relevant Pages