摘要: using System;class Complex{ public int i; public Complex(int i) { this.i = i; } //操作符重载,本质上是一个方法 public static Complex operator +(Complex c1, Complex c2) { return new Complex(c1.i + c2.i); }}class Tal... 阅读全文
posted @ 2010-02-25 15:49 吴永富 阅读(253) 评论(0) 推荐(0) 编辑