Bonjour,
J'ai un int (0 ou 1), je souhaite mettre cette donnee dans un bool et inversement.
int myInt = 0;
bool myBool = myInt;
ou
bool myBool = false;
int myIn = myBool;
La convertion se fait sans pb par le compilateur, mais j'ai un warning.
Comment faire cette convertion plus proprement pour supprimer e warning ?
Partager