vendredi 8 septembre 2017

Change variable number of variables in a function

I want to do something like this :

bool val = false;
bool val1 = false;
...

void function(&val,&val1,...)
{
   val = false;
   val1 = true;
   val15 = false
   ...
}

I know how to pass a variable number of arguments to a function (va_arg) however i don't know how to do the same with references. Thank you for your help and i'm sorry for the stupid question.

Aucun commentaire:

Enregistrer un commentaire