ASP. Basic knowledge

Source: Internet
Author: User

1."Project Structure"

1.1 file suffix:

. CS Source file (program code)

. csproj project files (manage file entries)

. sln solution files (Manage projects)

. config configuration file

1.2 main function:

the underlined part can be named by yourself

Static void Main (string[] args)

{

Main function contents

}

1.3 Input statement:

reads a row of data and assigns a value to s

String S=console.readline ();

1.4 Output Statement:

Console Writeline ("to output content");

Console Write ("to output content");

The difference betweenWriteline and Write :Writeline the output after the line wrap.

2"Data type"

2.1 Value Types

--- integer: Signed integer and unsigned integer. (The difference between ——— unsigned integers is larger than the positive number of the model integer.) Formula is 2x+1 )

Signed integer:sbyte,short,int,Long ( from small to large )

Unsigned integral type:byte,ushort,uint,ulong

--- floating-point type:float,double,decimal ( from small to large )

--- character type:char

---boolean (bool):true,false ( for Judgment )

---string type: string ( equivalent to the concept of character type, long length, the definition of double quotation marks.) )

Date and Time type---:datetime

--- enum type:enum E (、、、、、、)

--- structure type:struct S (、、、、、、)

2.2 Reference Types

--- strings: string

--- class type: the final base class for all other types of Object

user-defined types in the form of Class C (、、、、、、)

--- interface type:Interface I (、、、、、、)

--- array type: one-dimensional and multidimensional arrays. such as int [] and int[,]

3"vs software common shortcut keys"

Shift + DELETE deletes a row

Alt + → tips, changing

Ctrl + (k,c) Comment Select line

Ctrl + (K,u) Uncomment the selected line

4"The difference between a constant and a variable"

Add a const before the variable type . (Constants cannot be assigned second time)

Comments

ASP. Basic knowledge

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.