日期:2014-05-18  浏览次数:20675 次

为什么这样定义一个结构数组不行?
public struct shuzu
  {
  public float a;
  public float b;
  public float c;
  public float d;

  public shuzu(float a, float b, float c, float d)
  {
  this.a = a;
  this.b = b;
  this.c = c;
  this.d = d;
  }


  }

  shuzu[] aa = new shuzu[6];

aa 在下面是不能用的。为什么???

------解决方案--------------------
结构没有构造函数 和析构函数
------解决方案--------------------
shuzu[] aa = new shuzu[6]; 这一行你写在什么地方了?