helping neede

please help me finding and fixing my errors on
http://ideone.com/l1ntrO
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:
http://www.cplusplus.com/articles/Gw6AC542/

Edit: Please do not create new threads:
http://www.cplusplus.com/forum/general/85126/
Last edited on
Topic archived. No new replies allowed.