摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication1 7 { 8 //定义类 9 class Look10 {11 public static int Dev(int x, int y)12 { return x / y; }13 public static double Dev(double x, double y) ... 阅读全文
posted @ 2012-09-09 21:46 梦断难寻 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication1 7 { 8 // 在此处定义一个类. 9 class shuxue10 {11 // 静态成员只能通过类本身使用12 public const double PI = 3.14; //常量是一个隐士静态成员.13 public int Add(int x, int ... 阅读全文
posted @ 2012-09-09 20:44 梦断难寻 阅读(557) 评论(0) 推荐(0) 编辑