摘要:
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; 阅读全文