|
From: damian k. <kni...@ho...> - 2003-10-16 04:04:45
|
<html><div style='background-color:'><DIV>
<P>Hi</P>
<P>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? <BR></P>
<DIV>class World</DIV>
<DIV>{</DIV>
<DIV> Apple* apple;</DIV>
<DIV> public:</DIV>
<DIV> void foodItem(Apple* a)</DIV>
<DIV> { apple = a; }</DIV>
<DIV>}</DIV>
<P><BR>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?</P>
<P>Damian<BR><BR></P></DIV></div><br clear=all><hr>Hot chart ringtones and polyphonics. <a href="http://g.msn.com/8HMBENAU/2737??PS="> Click here.</a> </html>
|