it's a two part problem.
part one, is that you have a pointer to an object, not an object. try
HOUSE *p_house = new HOUSE;
|
and you'll need to delete p_House or you'll have a mem leak.
part two is now that your pointing to an object, you need to use -> instead of . to get to the sub vars
-------edit-------
and also note that the way your useing it you wight want to use new HOUSE[x] for how many you need, and then you'll need to delete p_House[];
Edited by - Authustian on June 21, 2001 10:08:59 PM
-------------------------------------------------Don't take life too seriously, you''ll never get out of it alive. -Bugs Bunny