Visual Basic Visual J # C ++ C # New JScript Visual FoxPro
Addition
Addition operation ++
Subtraction operation ------
Multiplication
Multiplication operation ******
Division operation //////
Integer Division \ N/A/1
Modulus (only returns the division of the remainder) mod % (floating point can also be processed) %; mod
Power ^ N/A ^ ,**
Assignment
Value assignment ======
Addition operation + = new + = +
Subtraction operation-= new-=-
Multiplication operation * = New * = *
Division operation/= new/=/
Integer Division \ = new N/A/= 1 N/
Connection & = new + = +
-
$
Module N/A % = %
Shift left N/A <= bitlshift ()
Shift N/A >>>>>>>>>>>>= bitrshift ()
And N/A & = bitand ()
Bit does not contain or N/A ^ = bitxor ()
Bit contains or N/A |=|=| = bitor ()
Relationship and Equation
Less than <
Less than or equal to <=<=<=<=
>>>>>>>
Greater than or equal to >=>===>=> =
Equal to ============
Not equal <>! =! =! =! = <> ;#;! =
Compare the two object reference variables is = N/A = compobj ()
Comparison object reference type typeof X is class1 x instanceof class1 N/a x is class1 (see as and typeof) instanceof N/
Comparison string = string. Equals () (the function that compares and connects strings) =
-Or-string. Equals ()
===
Connection string
Short Circuit Boolean and andalso & N/
Short Circuit Boolean OR orelse | N/
Shift operation
Shift left N/A <N/
Right Shift N/A >>>>>>>>>>>>>> N/
Range Resolution
Range Resolution. N/A:... and base N/::
Suffix 2
Array element () [] [] [] [] []; ()
Function call ()()()()()()
Type conversion CINT, cdbl,..., ctype (type) type () N/
Member functions... or->...
The suffix increments by N/A ++ N/.
Suffix decrease N/A -- N/
Unary operator 3
Indirect addressing N/A ** (used only in insecure mode) N/
Addressing addressof N/A & (for insecure mode only; see fixed) N/
Logic not! ! ! ! !
The complement of 1 not ~ ~ ~ ~ Bitnot ()
Prefix increment N/A ++ N/
Decrease prefix N/A -- N/
Type size N/A sizeof N/
Comma N/A, N/A, N/
Bitwise Operator
Position and & bitand ()
Bit does not contain or XOR ^ bitxor ()
Bit contains or | N/
Logical operation
Logic and & and
Logic or | or
Conditional operation
Condition operator IIF function ()? :? :? :? : N/
Pointer to a member
Pointer to the member N/A. * or->. (used only in unsafe mode) N/
Reference
Reference N/A & N/A (use the reference type) N/@
1. Based on the operands, the Division operator is overloaded to process integer division and floating point division.
2. suffix operators have the highest priority in expression calculation.
3. The unary operator appears before the operand and is associated from right to left.