View Single Post
  #2 (permalink)  
Old 06-12-2007, 08:53 PM
marbledog
Posts: n/a
The "+=" operator adds the value of the variable on the right to the current value of the variable on the left. The "-=" operator does the same thing, just with subtraction instead of addition.

In the example, if rowSum = 10 and data[row][col] = 14, the command "rowSum += data[row][col]" would make rowSum = 24. Get it?

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!