P
PencoOdStip
void print_msg( ostream &os, const string &msg )
{
if ( msg.empty() )
// nothing to print; terminate function ...
return;
os << msg;
}
I don't understand the first line : void print_msg( ostream &os, const
string &msg )
by writing ostream &os,you do what ? what that means? same goes for
const string &msg ...
why not just const string msg,without the & ?
{
if ( msg.empty() )
// nothing to print; terminate function ...
return;
os << msg;
}
I don't understand the first line : void print_msg( ostream &os, const
string &msg )
by writing ostream &os,you do what ? what that means? same goes for
const string &msg ...
why not just const string msg,without the & ?