J
jimmy
hello ,
I want to create a new function that way:
void foo(int &x,int &y=0) {}
I mean that, I would use it both the way foo(x) and foo(x,y).
but the complier says that was invalid.
how can i make it .
thank u.
I want to create a new function that way:
void foo(int &x,int &y=0) {}
I mean that, I would use it both the way foo(x) and foo(x,y).
but the complier says that was invalid.
how can i make it .
thank u.