Type-casting. C and C++
- by thecoshman
I always though that
float var_a = 9.99;
int var_b = (int)var_a;
was they way to typecast in c++... But here it said that its not the proper C++ way, its the old C way.
So I ask, What is the proper C++ way, and more importantly, how do they differ? the C method should still work though shouldn't it.