A single function to query the status of all the rooms from the user isn't really practical if the status of each room is stored in a separate variable local to main(). Is that way of storing the room status mandatory in the assignment?
You should remove most of your
using namespace std;
directives. You only need that once in main(), or, if it is meant to affect more than one function, outside of a function body, right after the #includes.
Please use code tags the next time you post code, and no line numbers.
Ah, and... Welcome to CodeGuru!
Last edited by Eri523; December 2nd, 2010 at 03:28 PM.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.