用带参构造函数为对象数组赋值的方法
例:
student stud[5]=
{
student(87,"chenlan",85,78,76),
student(30,"huanghong",97,68,87),
student(290,"zhanghua",67,98,67),
student(89,"yexuan",98,87,76),
student(5,"baiwei",87,68,98)
};
posted on 2006-10-09 00:05
踏雪赤兔 阅读(2521)
评论(4) 编辑 收藏 引用 所属分类:
玩转编程