given:
Code:
#include <iostream>
#include <stdlib.h>
#include <fstream>

using namespace std;

ofstream Out("con"); //screen
                  //Out("rect.txt"); new disk file
                  //Oiyt("rect.txt",ios::app);

#include "rect.h"
#include "room.h"

void main(int argc, char *argv[]) //notice the void
{
     //.....
}
and....
Code:
//room.cpp
#include "room.h"
Room::Room(void)
{
    Out << "Room default constructor " << endl;
}
in Room::Room 'Out' is undeclared. why?