Original Post
I'm still a bit of a beginner and still messing around with text games but anyways, right now I'm having a problem with two of my classes, where the top of my file right now looks like
...
#include "creatures.cpp"
creature creatures[NUMBER_OF_CREATURES];
#include "rooms.cpp"
room rooms[NUMBER_OF_ROOMS];
...
now, the problem is that both of these use each other, so since creatures comes first it gives me the error that rooms isn't declared yet. Is there a why to tell the compiler that rooms is coming up? or any help would be great. Thank you
Edited by - laotzu on 10/18/00 3:15:07 PM
Edited by - laotzu on 10/18/00 3:27:37 PM