Reference.IncrementCompound History

Hide minor edits - Show changes to markup

June 01, 2010, at 10:00 AM by Equipo Traduccion -
Changed lines 6-7 from:

Sintáxis

to:

Sintaxis

Changed lines 11-14 from:

x += y; // equivalent to the expression x = x + y; x -= y; // equivalent to the expression x = x - y; x *= y; // equivalent to the expression x = x * y; x /= y; // equivalent to the expression x = x / y;

to:

x += y; // equivalente a la expresión x = x + y; x -= y; // equivalente a la expresión x = x - y; x *= y; // equivalente a la expresión x = x * y; x /= y; // equivalente a la expresión x = x / y;

Changed lines 17-24 from:

Parameters

x: any variable type

y: any variable type or constant

Examples

to:

Parámetros

x: cualquier tipo de variable

y: cualquier tipo de variable o constante

Ejemplos

Changed lines 26-29 from:

x += 4; // x now contains 6 x -= 3; // x now contains 3 x *= 10; // x now contains 30 x /= 2; // x now contains 15

to:

x += 4; // x ahora es 6 x -= 3; // x ahora es 3 x *= 10; // x ahora es 30 x /= 2; // x ahora es 15

Added line 32:
June 01, 2010, at 09:55 AM by Equipo Traduccion -
Changed lines 3-8 from:

Description

Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax, listed below.

Syntax

to:

Descripción

Realiza una operación matemática con una variables con respecto a otra variable o una constante. El operador += (y los demás operadores) son una forma simplificada de la sintaxis completa, tal y como se muestra más abajo.

Sintáxis

July 16, 2007, at 12:51 PM by Paul Badger -
Deleted lines 30-36:

See also

+=
-=

July 16, 2007, at 12:50 PM by Paul Badger -
Deleted line 33:
Added lines 36-37:
July 16, 2007, at 12:50 PM by Paul Badger -
Changed line 36 from:
to:
July 16, 2007, at 12:48 PM by Paul Badger -
Added line 19:
July 16, 2007, at 12:47 PM by Paul Badger -
Deleted line 18:
July 16, 2007, at 12:47 PM by Paul Badger -
Deleted line 19:
July 16, 2007, at 12:47 PM by Paul Badger -
Changed lines 18-20 from:

x: any variable type \\

to:

x: any variable type

July 16, 2007, at 12:47 PM by Paul Badger -
Changed line 18 from:

x: any variable type\\

to:

x: any variable type \\

July 16, 2007, at 12:46 PM by Paul Badger -
Changed lines 18-20 from:

x: any variable type //y: any variable type or constant

to:

x: any variable type\\ y: any variable type or constant

July 16, 2007, at 12:46 PM by Paul Badger -
Changed lines 19-20 from:

\\y: any variable type or constant

to:

//y: any variable type or constant

July 16, 2007, at 12:45 PM by Paul Badger -
Changed lines 18-19 from:

x: any variable type \\y: any variable type or constant

to:

x: any variable type \\y: any variable type or constant

July 16, 2007, at 12:45 PM by Paul Badger -
Changed lines 18-20 from:

x: any variable type\\ y: any variable type or constant

to:

x: any variable type \\y: any variable type or constant

July 16, 2007, at 12:45 PM by Paul Badger -
Changed line 18 from:

x: any variable type

to:

x: any variable type\\

July 16, 2007, at 12:45 PM by Paul Badger -
Changed line 26 from:

x *= 10; // x now contains 30

to:

x *= 10; // x now contains 30

July 16, 2007, at 12:44 PM by Paul Badger -
Changed lines 5-6 from:

Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax below.

to:

Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax, listed below.

Changed lines 10-13 from:

x+=2; // equivalent to the expression x = x + 2; x-=2; // equivalent to the expression x = x - 1; x*=2; // equivalent to the expression x = x * 2; x/=2; // equivalent to the expression x = x / 2;

to:

x += y; // equivalent to the expression x = x + y; x -= y; // equivalent to the expression x = x - y; x *= y; // equivalent to the expression x = x * y; x /= y; // equivalent to the expression x = x / y;

Changed lines 18-19 from:

x: any variable type

to:

x: any variable type y: any variable type or constant

Changed lines 24-27 from:

x++; // x now contains 3 x--; // x contains 2 again@]

to:

x += 4; // x now contains 6 x -= 3; // x now contains 3 x *= 10; // x now contains 30 x /= 2; // x now contains 15 @]

July 16, 2007, at 12:27 PM by Paul Badger -
Added lines 1-31:

+= , -= , *= , /=

Description

Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax below.

Syntax

x+=2;   // equivalent to the expression x = x + 2;
x-=2;   // equivalent to the expression x = x - 1; 
x*=2;   // equivalent to the expression x = x * 2; 
x/=2;   // equivalent to the expression x = x / 2; 

Parameters

x: any variable type

Examples

x = 2;
x++;      // x now contains 3
x--;      // x contains 2 again

See also

+=
-=

Share