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