|
From: Daniel G. <sp...@ho...> - 2003-10-16 10:40:12
|
This wouldn't happen to be university homework would it?
What does this mean?
"Using the function - theUni.foodItem(&apple) - to associate them in a Game
function is clearly not going to work because there are multiple apple
objects?"
Either you need to go into more detail or you don't understand what you're
meant to be doing.
Ouch, scathing aren't I?
>From: "damian knight" <kni...@ho...>
>To: dev...@li...
>Subject: [Dev-C++] Association
>Date: Thu, 16 Oct 2003 04:03:30 +0000
>
Hi
I have a Game(manager) class that contains a list of Apple objects and also
a World object called "theUni". How do I associate the World class with the
Apple class?
class World
{
Apple* apple;
public:
void foodItem(Apple* a)
{ apple = a; }
}
Using the function - theUni.foodItem(&apple) - to associate them in a Game
function is clearly not going to work because there are multiple apple
objects?
Damian
_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband
|