日期:2014-05-20 浏览次数:20722 次
private void button1_Click(object sender, EventArgs e) { iambase am1 = new iambase(); iambase am2 = new iambase(); MessageBox.Show(iambase.count.ToString()); }
public class iambase { public static int count = 0; public iambase() { count++; } static iambase() { count++; } }