Open Visual Studio 2012-file-project-Windows-Console Application
How to Add fonts and colors: Tools-options-environment-fonts and colors
How to add a row number: tool-Option-Text Editor-all languages-row number
CTRL + X: cut a row and move the cursor down a row automatically
CTRL + V: paste a row and move the cursor down one row automatically
Predefined Data Types
I. Value Type
Integer
Signed and unsigned integers. The difference is that the unsigned integer is larger than the positive number range of the signed integer. 2x + 1
Signed integer: sbyte, short, Int. Long has a positive number, and the range increases in sequence by writing.
Unsigned integer: byte, ushort uint, ulong only has positive numbers, and the range also increases in turn
Floating Point Type
Float:
Double:
Decimal:
Character Type: (UNICODE type)
Charl = 'Hello world! ';
String type
String is equivalent to the concept of character type and has a long length. Double quotation marks are required for definition.
Bool type: generally used for determining
(True, false)
Date and Time type:
Datetime
Enumeration type:
User-Defined type in the form of Enum E (...)
Structure Type:
User-Defined type in the form of struct (...) Values
Ii. Reference Type
String type
String is equivalent to the concept of character type and has a long length. Double quotation marks are required for definition.
Class type:
All other types of final base classes of the object
Class C (...) User-Defined type in the form of code
Interface Type
Interfacei (.....)
Array type:
One-dimension and multi-dimensional arrays, such as int [] and INT [,]
Visual Studio 2012