Default string arguments
Posted
by John.M
on Stack Overflow
See other posts from Stack Overflow
or by John.M
Published on 2010-05-01T09:45:19Z
Indexed on
2010/05/01
9:47 UTC
Read the original article
Hit count: 133
c++
myPreciousFunction(std::string s1 = "", std::string s2 = "")
{
}
int main()
{
myPreciousFunction();
}
can i make the arguments look any more prettier? i want there to be empty string if no arguments were supplied.
© Stack Overflow or respective owner