摘要: Dictionary<int, string> dic = new Dictionary<int, string>(); dic.Add(1, "睛睛青"); dic[2] = "sb"; foreach (KeyValuePair<int, string> kup in dic) { Consol 阅读全文
posted @ 2016-04-16 13:36 思维乐趣 阅读(367) 评论(0) 推荐(0) 编辑
摘要: //使用多态求矩形的面积和周长以及圆形的面积我周长 Shape shape = new Circle(5); //new Square(5,6); double area = shape.GetArea(); double perimeter = shape.GetPerimeter(); Cons 阅读全文
posted @ 2016-04-16 01:32 思维乐趣 阅读(1204) 评论(0) 推荐(0) 编辑