helping neede

please help me finding and fixing my errors on
Ooh nice, they enabled hyperlinks for people with less than 50 posts :)

First problem:
prog.cpp:10: error: ISO C++ forbids declaration of ‘Room’ with no type
In C++, unlike Java, the order in which things are defined is very important. Since Room is defined after House, the compiler gets very angry at you. Fix that first and then repost the IDEOne link to your new program. (Thanks for using IDEOne!)

Also, you may need to read about forward declarations:

Edit: Please do not create new threads:
Last edited on
Topic archived. No new replies allowed.