C#:结构
摘要:
namespace ConsoleApplication8{public struct Dimensions{public double Height;public double Width;public Dimensions(double height, double width){Height = height;Width = width;}public double Diagonal{get{return Math.Sqrt(Height * Height + Width * Width);}}static void Main(string[] args){Dimensions test 阅读全文
posted @ 2013-02-27 17:51 LilianChen 阅读(1009) 评论(0) 推荐(1) 编辑