Visual Basic Visual J # C ++ C # New JScript Visual FoxPro

Source: Internet
Author: User
Tags integer division

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.