Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualfastcall22

Posted 17 January 2013 - 03:54 PM

Quickfix:
Use a=4+b over 4+b=a.
You cannot assign the value a into 4+b.

If both a=4+b and 4+b=a are to be the same, then which value should be assigned to the other in the expression: a=b?
You can read more about l-values and r-values here.

Also:
You only need to call srand once in your program, please refer to this thread: Why is it bad to call srand multiple times?

#4fastcall22

Posted 17 January 2013 - 03:53 PM

Quickfix:
Use a=4+b over 4+b=a.

If both a=4+b and 4+b=a are to be the same, then which value should be assigned to the other in the expression: a=b?
You can read more about l-values and r-values here.

Also:
You only need to call srand once in your program, please refer to this thread: Why is it bad to call srand multiple times?

#3fastcall22

Posted 17 January 2013 - 03:51 PM

Quickfix:
Use a=4+b over 4+b=a.

If both a=4+b and 4+b=a are to be the same, then which value should be assigned to the other in the expression: a=b? You can read more about l-values and r-values here.

#2fastcall22

Posted 17 January 2013 - 03:50 PM

Quickfix:
Use a = 4+b over 4+b = a.

If both a = 4+b and 4+b = a are to be the same, then which value should be assigned to the other in the expression: a = b? You can read more about l-values and r-values here.

#1fastcall22

Posted 17 January 2013 - 03:46 PM

Quickfix:
Use a = 4+b over 4+b = a.

PARTNERS