[Note] C # basic introduction -- Arithmetic Operators of C,
Add: +.The plus sign has two purposes: When the plus sign is used to connect two numbers, the sum of the two numbers is calculated. For example:
Console. WriteLine (9 + 2.2); // output 11.2
This section to talk about arithmetic operators1. Automatic conversion of the result type.Package Com.ray.ch01;public class Test {public static void main (string[] args) {int a = 2, b = 3;int c = A/b;int D = b/ A System.out.println (c);
The combination of Arithmetic Operators and expressions.Basic Data Type int float double char int a; int B = 0; int c = B; float f; float f2 = 0.1; float f3 = 1.0; double num; char c = 'a'; char C = 'a'; char cc = c;NSString: @ "hello
+ Plus-two objects added-minus-get negative numbers or one number minus the other* Multiply by two numbers or return a string that is repeated several times/divide-X divided by Y% modulo-Returns the remainder of the division* * Power-Returns the Y
One. Describes other types of operators.In addition to the +,-,*,/,%,+ connector described earlier, there are two + +,--。Two. + + self-incrementDefinition: Add one on the basis of the original data and assign it to the original data.The
I. Re-understanding of the self-increment operatorThe first thing to understand is that operators are symbolic representations of operations, and each of these operators represents a specific operation. The forms of these operations are various, and
I. Overview operatorsSome of the previous explanations are errors, in constants and variables that piece, around the ground is to assign constants to the variable, here is talking about the operation, the previous is not considered an operation. The
First lists all the arithmetic operatorsStep Two:Precautions:When we use arithmetic operators, remember that the following things are important:1. The addition operator should be aware that when connecting strings, it is only possible to add strings
1 //08-arithmetic operator. CPP: The entry point that defines the console application. 2 //3 4#include"stdafx.h"5#include 6#include 7 using namespacestd;8 9 intMain ()Ten { One //+-*/% subtraction (die) A intA; -cout "Please enter the first
IntroducedArithmetic operators are used in mathematical expressions, and they function in the same way as they do in mathematics. The following table lists all the arithmetic operators.The instance in the table assumes that the value of integer
Typically, the "/" arithmetic operator is calculated based on the data on either side of the participating operation, such as:6/3 = 2; 6,3 are integers, then the result is an integer 2;6.0/3.0 = 2.0; 6.0,3.0 is a floating-point number, then the
[Switch] C ++ Operator Overloading guidelines Http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-ops.html One of the nice features of C ++ is that you can give special meanings to operators, when they are used with user-defined
If the data type is the brick of the programming language, the operators and operators are the lime and cement of the programming language. It is a mixture of values of various data types, so that the data value is no longer just an isolated value,
directory of this document
First, arithmetic operators
Second, assignment operator
The increment operator and the self-decrement operator
Iv. sizeof
Five, comma operator
Vi. Relational operators
Seven, logical
Directory of this document
First, arithmetic operators
Second, assignment operator
The increment operator and the self-decrement operator
Iv. sizeof
Five, comma operator
Vi. Relational operators
Seven, logical
SQL queries and SQL functions This chapter aims Understanding Oracle Data TypesUnderstanding Data Definition Languages and data manipulation languagesUnderstanding Transaction Control Languages and Data Control languagesMastering SQL Operators
The 4th Chapter weaves the statement into a programHaving learned the various data types in C + +, you know how to use various data types to define variables to describe things in the real world. Now, we can write a payroll statistics program
2nd, 3rd02.01 _ Java language basics (overview and use of constants) (master)
A: What is A constant?
The value of the program cannot be changed during execution.
B: Classification of constants in Java
Nominal value constant
Operators and expressions in C Language
Operators and expressions
Operators in C language, also known as operators, are symbols used to perform operations between data. Operators in C language can be divided into value assignment operators,
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.