You could implement the first one with a default parameter:
int A(int a, int b, int c, int d = 0)
{
// stuff
}
3
solved C++ avoid writing two similar functions
You could implement the first one with a default parameter:
int A(int a, int b, int c, int d = 0)
{
// stuff
}
3
solved C++ avoid writing two similar functions