当前位置:编程学习 > C#/ASP.NET >>

请求讲解一行代码的意思(简单的,只是我暂不懂。。)

--------------------编程问答-------------------- public ClsStudent[] arryStu = new ClsStudent[20];
arryStu 是定义成的ClsStudent类型的数组
arryStu [i] = new ClsStudent();//new ClsStudent对象,你说什么意思

为什么不用List<ClsStudent> clist=new List<ClsStudent>();

--------------------编程问答-------------------- --------------------编程问答-------------------- 这是定义一个学生类的空实例,用来后面保存新添加的学生的信息
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,