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