我让程序运行了伙计们非常感谢我刚刚删除了所有内容并从头开始重新开始!现在我遇到了问题:
// 构造函数
public Grade ( string cname , int Studentident , int [] homework , int [] classwork , int [] midexam , int [] finalexam)
{
coursename = cname ;
Studentid = Studentident ;
hwgrade = homework ;
cwgrade = classwork ;
midegrade = midexam ;
finalegrade = finalexam ;
}
// 尝试设置值
Grade grade = new Grade('m',1,1,1,1,1);
它给了我一个错误,无法从 int 转换为 int[]