這一部分主要記錄下運算符相關的東西
/*
2020年3月4日22:28:49
運算符相關的東西
使用Math來進行相關的數據計算
*/
using System;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
//Console.WriteLine("Hello World!");
int i = 8;
int j = 3;
//使用Math函數
//Console.WriteLine(Math.Sin(i * i + j * j));
//求餘運算
int result = i % j;
Console.WriteLine(result.ToString());
Console.ReadKey();
}
}
}
因爲運算符計算的東西 和C C++的都比較類似,這裏暫不記錄
區別是C#中的大類System包含了許多的類庫 不用像 C/C++需要包含math頭文件