10 days to learn the second day of ASP.net

Source: Internet
Author: User

1. Define variables:
String strExample; string ("aaa ")
Char chrExample; character ('A ')
Bool blnExample; Bool type (true/false)
DataTime datExample; date type ("09/19/2002 ")
Int intExample; INTEGER (32-bit signed integer)
Double dblExample; floating point number (64-bit double-precision floating point number)
Ii. Various operations:
= Value assignment
+ Addition operation
-Subtraction
* Multiplication
/Division
% Modulo operation
& Logical And
| Logical Or
! Logic Not
Iii. Various structures:
If (condition)
{
}
Else
{
}
Switch)
{
Case option1:
Break;
Case option2:
Break;
}
For (inti = 1; I <= 10; I ++) // note the semicolon
{
}
While (condition)
{
}
Do
{
} While (condition );
Iv. Notes:
1. VB users may easily miss the semicolon at the end of the statement;
2. People who are familiar with VB can use variables but do not declare them. This is not allowed by C # by default;
3. When passing parameters to a function, use parentheses: Response. Write "aa.
I can hardly say that I am talking about a language. To learn a language, you not only need to learn grammar, but also the characteristics of the language, I hope you can buy a C # book to study the features of C # as a new language. Today, let's talk about WEB controls.

Related Article

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.