amphetaman@gmail.com writes:
>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?
FYI I made a little quiz about this kind of stuff at
http://www-h.eng.cam.ac.uk//tpl/...ongtyping.html