hi all,
while i am learning the overloading operators ,i studied the following syntax
ostream&operator<<(ostream &, classname&);
i understand how it works but only something that i don't understand is the use of (&) with ofstream class ?at this point what's happening ?
also i notice that i can do it also to functions like
foo&(){
//code here
return //something
}
so what's meant by that ?
thanks