Afficher un message
Vieux 30/06/2008, 16h06   #1
amphetaman@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Implicit conversion from int to double

I know this might seem kind of silly, but is it necessary to cast int
to double?

Do I have to do

int i = 42;
double d = static_cast<double>(i);

or can I just do d = i?
  Réponse avec citation
 
Page generated in 0,05608 seconds with 9 queries