程序初始结构:
using system 应用命名空间
namespace ConsoleApp2
{
class Progame
{
static void Main(string[] args)
{
Console.WriterLine("hello,world");
}
}
}
- ctrl+k ctrl+c 单行快捷注释 ctrl+K ctrl+u 解除单行快捷注释
- Write在打印的时候不会将语句进行换行,WriteLine每次打印都会进行换行
- ctrl+shift+enter 强制换行
- ctrl+d 复制当前行到下一行
- int 整型 long 长整型 short 短整型 longlong 长长整形
- char 字符型
- string 字符串型
- bool 布尔型
- float 单精度 double 双精度
- ASCII A:65 a:97