objects as parameters
From: Anthony C (AntMJ2317_at_comcast.net)
Date: 05/14/04
- Next message: Leor Zolman: "Re: nifty trick for a substring in ANSI C?"
- Previous message: Ken: "Re: calling a function in c++"
- Next in thread: Leor Zolman: "Re: objects as parameters"
- Reply: Leor Zolman: "Re: objects as parameters"
- Maybe reply: Anthony C: "Re: objects as parameters"
- Maybe reply: Anthony C: "Re: objects as parameters"
- Reply: Francis Glassborow: "Re: objects as parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Leor Zolman: "Re: nifty trick for a substring in ANSI C?"
- Previous message: Ken: "Re: calling a function in c++"
- Next in thread: Leor Zolman: "Re: objects as parameters"
- Reply: Leor Zolman: "Re: objects as parameters"
- Maybe reply: Anthony C: "Re: objects as parameters"
- Maybe reply: Anthony C: "Re: objects as parameters"
- Reply: Francis Glassborow: "Re: objects as parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|