摘要: View Code public class Point { public int x, y; public Point(int x, int y) { this.x = x; this.y = y; } public override string ToString() { return string.Format("X={0},Y={1}", x, y); } } class Program { static void Main(string[] args) { Point p1 = new Point(50, 12); Point p2 = p1; p2.x = 0; 阅读全文
posted @ 2011-03-20 10:47 师士 阅读(286) 评论(0) 推荐(0) 编辑