Hi,
Im really new to all this so apologies for any stupid questions but basically I have a program I am making.
As its for a coursework piece I wont go into detail, however put simply there is a class, which I will call house.
Now everytime I run a function within that class, say a menu function, or a menu selection function.
I have to create an object first.
So all functions look like;
etc.Code:void house::menu() { house house; code }
What im asking is if there is anyway to avoid putting the
bit at the start of each function?Code:house house;



LinkBack URL
About LinkBacks



and then using s1.function();