摘要:
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
思维乐趣
阅读(374)
评论(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
思维乐趣
阅读(1226)
评论(0)
推荐(0)

浙公网安备 33010602011771号