|
-
Dec 13th, 2001, 04:59 PM
#1
Thread Starter
I wonder how many charact
Help Please
I have a class (lets say Stable) that takes an object of another class (Horse) as a parameter.
So I would have something like this in my header and implementation files....
void GetSomeInfo (Horse &t){}
Easy enough, but when I try to compile ,it doesn't recognize Horse.
So, I figured, well, I need to throw a #INCLUDE "horse.h", in the Stable header file, so the stable class would recognize what a horse was. Well, that doesn't work... (it dont recognize it)...
So how can I get one user defined class(Stable) to recognize another user defined class(Horse), so I can implement functions that a Horse object as a parameter.
Im using VC++ btw....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|