標籤:/// <summary>/// 100以內與7有關的數/// </summary> public void Seven() { Console.WriteLine("100以內與7有關的數有:"); int count = 0; for (int num = 1; num <= 100;num++ ) { if(
標籤:上面部落格學習了使用反射查看類型的資訊,以及使用反射擷取特性對象。下面使用反射來動態建立對象。首先準備一個Test類: public class TestClass { public TestClass() { Console.WriteLine("這是一個無參建構函式"); } public TestClass(int a, int b) {
標籤://以一個demo開始吧//Main方法,程式的入口static void Main(string[] args) { int a = 3; int res = Test(a); Console.WriteLine(res); }//自訂一個簡單的方法,傳值+5返回public static int Test(int a) { a = a + 5;
標籤:轉自:http://www.cnblogs.com/lovewife/articles/2466543.html單精確度就是指4個位元組的浮點數,即float雙精確度就是指8個位元組的浮點數,即doubledecimal是高精度 浮點型 Name CTS Type Description Significant Figures Range
標籤:C. Recycling Bottles It was recycling day in Kekoland. To celebrate it Adil and Bera went to Central Perk where they can take bottles from the ground and put them into a recycling bin.We can think Central Perk as coordinate plane. There
標籤:Problem hereProblemDrazil is playing a math game with Varda.Let’s define for positive integer x as a product of factorials of its digits. For example, First, they choose a decimal number a consisting of n digits that contains at least one digit