Adhere to ASP.NET - (4)

xiaoxiao2021-03-06  90

C # Programming:

C # Program I am not familiar, since there is a textbook, I will study it.

What variables are started to start, and you can see it.

First, the variable declaration problem:

1. I am used to VB, the case is a very difficult problem, and I have to do this.

2, when the statement, you can assign a value at the same time, or you can also declare multiple variables, for the way to write, the agreed statement is separated from the assignment.

3. To use a variable, you must declare in advance.

4. Provide a value for the string variable, you must use dual quotes; provide a value to digital variables, do not need to use any quotes. ASP.NET's syntax is interpreted as text, not interpreted in double quotes, objects, digital values, etc.

Second, the problem of variables:

C # Data types are divided into two categories: value types and reference types. The variable has a stack and a stack of stacks and stacks. The size of the data type in the stack is fixed, and only a format data can only be stored; the variable data can be stored in the heap, and the size is determined, but the variable storage of which is stored in the stack. in.

Value Type: The data type stored in the stack.

Quote Type: The data type stored in the heap.

Third, data type:

Divided into numeric, character, structural, Boolean, enumeration type.

The numeric type is divided into integer, floating point, decimal point type.

Predefined integer type in C #:

Predefined floating point type in C #:

转载请注明原文地址:https://www.9cbs.com/read-122037.html

New Post(0)