C # Programming I am not familiar with, since the textbook has, just follow its ideas to learn.
Start talking about variables, memory pull, and see what you can.
First, the question of variable declaration:
1, accustomed to VB, case is a very difficult problem, and have to do so.
2, when the declaration can be assigned at the same time, can also declare multiple variables, in order to write the program good read, the contract declaration and assignment separation.
3. If you want to use a variable, you must declare it in advance.
4. Give a value to a string variable, you must use double quotes, and you do not need to use any quotation marks to provide a value to a numeric variable. ASP.net's syntax is interpreted as text in double quotes, not in double quotes, and is interpreted as variables, objects, numeric values, and so on.
Second, the question of the variable:
Data types in C # fall into two broad categories: value types and reference types. Variables are stored with stacks and heaps, the data types in the stack are fixed, can store only one format of data, the heap can store variable data, the size of the runtime determines, but the variable to which it is referenced is stored on the stack.
Value type: The type of data stored on the stack.
Reference type: The data type stored in the heap.
Third, data type:
It is divided into numerical type, character type, structure type, Boolean type, enumerated type.
Numeric types are integral, floating-point, and decimal.
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