An operator is a particular symbol or expression used to examine, modify, or merge variables. For example, with the sum operator + you can sum two digits (such as let i = 1 + 2); a slightly more complex example has logic and operator && (e.g. if
An expression
C + + provides a rich operator and defines what these operators mean when the operands are of a built-in type. In addition, C + + supports operator overloading, allowing programmers to customize the meaning of the operator when used
Needless to say, this is about Operator overload. About operator, the description in can be used as a overload as follows:+ */% ^ & | ~ ! = + = *=/=%= ^= &= |= > >>= >= && | | + + >*, > [] () new new[] Delete delete[]Start with operator = speak
The assignment operator also has the same usage as the arithmetic operator, as mentioned in the Appendix: for example, to add 4 to X and then assign it to x, you can write x+=4.
Copy Code code as follows:
public class mathops{
public
The assignment operator is also used together with the arithmetic operator. It is mentioned in the appendix earlier. For example, to add x to 4 and then assign the value to x, you can write it as x + = 4.
Copy codeThe Code is as follows: public
Use const whenever possible
One wonderful thing about const is that it allows you to specify a semantic constraint: a specific object should not be modified. The compiler will execute this constraint. It allows you to notify the compiler and other
To define an array value:
The difference between an array variable and a scalar variable can be explained as follows.
Say that you are trying to show the names of various students as variable sets. Each individual variable is a scalar variable, as
I. Concepts
Physical address)It is used for memory chip-level unit addressing, which corresponds to the address bus connected to the processor and CPU.-- This concept should be better understood among these concepts, but it is worth mentioning that
Operation
Priority
Associativity
1
Suffix Operator
[]. () (Function call)
Left to right
2
Single Object Operator
! ~ ++ -- + (Single-operand)-(single-operand)
From right to left
3
Create
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.