?? 4-2.txt
字號:
using System;
class Test
{
public static void Main()
{
Console.WriteLine(5/3);
Console.WriteLine(4/3);
Console.WriteLine((5/3)==(4/3));
Console.WriteLine(5.0/3);
Console.WriteLine(4.0/3);
Console.WriteLine((5.0/3)==(4.0/3));
Console.ReadLine();
}
}
結果:
1
1
True
1.66666666666667
1.33333333333333
False
Console.WriteLine(day1+day2);
錯誤:運算符“+”無法應用于“Weekday”和“Weekday”類型的操作數
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -