mercredi 8 août 2018

Is there a simple way to call a function with default arguments?

Here is a function declare with default arguments:

void func(int a = 1,int b = 1,...,int x = 1)

How can i do to avoid calling func(1,1,...,2) when i want to set the x parameter with the previous params default?

Aucun commentaire:

Enregistrer un commentaire