ignorable tips

时间:2014-05-16 05:21:09   收藏:0   阅读:247

枚举 索引从0开始

sort 默认升序排列  Array.Sort(intSort);

声明类数组之后,在用到具体的元素时需要再重新声明一遍

public class person{

  pubic string strName;

}

person[] stu=new person[15];

for(int i=0;i<15;i++){

  stu[i]=new person();

stu[i].name="sfsdgs";

}

ignorable tips,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!