Jump to content    • Log In with Google      Sign In      •
Create Account   Member Since 22 Jun 2002 Offline Last Active
Mar 13 2014 08:55 AM  Posts I've Made  In Topic: Are some people
not cut out for programming?  11 March 2014 - 08:05 AM  The way
you become 'good' is by:    1. Coming up with a 'good design'
you think will work.   2. implement the code.   3. Ship the
result   4. Spend the next 6 months fixing all the terrible
flaws in your 'good design'  No one is born a software engineer,
it's just something you get better at with experience....  In
Topic: casting an expression: what exactly casts the compiler?
24 February 2014 - 01:23 PM  it should only cast the result
afaik.   I hope not! It should cast whatever is directly in
front of the cast operator. So, in this case:  int a=1, b = 2;
float f = (float)a/b;  It will convert both a and b to floats
prior to computing the division. The cast itself will only
actually force 'a' to be converted to a float, but since 'a' is
a float, 'b' will in turn be con