Head A C # Chinese version chapter II page62

Source: Internet
Author: User

When your program uses variables to get a thorough understanding of the data, you'll know that each program processes data. Data is sometimes a form in a file, sometimes an image in a game, and sometimes an instant message. These are all data. Variables are now useful. The program stores the data with variables. Declare your data to declare a variable, and you should tell the program its type and name. Once C # knows the type of the variable, it will compile when you make a mistake or do something that doesn't make sense, like using "Fido" to subtract 48353.

Variables can have different values when they are run by variable variables. In other words, the value of the variable is variable. (so called "variable" is a good name.) This is important because it is the core idea of the program you write and will write. So if your program sets the Myheight variable to 63;intmyheight=63, every time myheight appears in the code, C # will replace it with its value 63来. Then, if you change it to 12:myheight=12;c#, it will replace myheight--with 12, but this variable is still called Myheight. Whenever your program needs to manipulate numbers, text, true/false values, or any other data, you will use variables to record them.

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.