P
PengYu.UT
Hi,
An example usage of static_cast is at
http://publib.boulder.ibm.com/infoc...oc/language/ref/clrc05keyword_static_cast.htm
But I don't understand why it is necessary to use
float d = static_cast<float>(j)/v;
Isn't
float d = float(j)/v;
enough?
I couldn't find the detailed discussion on those *_cast? Would you
please tell me some good online resources? Thanks!
Best wishes,
Peng
An example usage of static_cast is at
http://publib.boulder.ibm.com/infoc...oc/language/ref/clrc05keyword_static_cast.htm
But I don't understand why it is necessary to use
float d = static_cast<float>(j)/v;
Isn't
float d = float(j)/v;
enough?
I couldn't find the detailed discussion on those *_cast? Would you
please tell me some good online resources? Thanks!
Best wishes,
Peng