1
using System;
using System.Collections.Generic;
using System.Text;
namespace experment5_1
{
class Student //学生类
{
int sno; //学号
string sname; //姓名
Course[] course; //Course类对象数组
int[] score; //课程成绩数组
double sgpa1; //常见GPA值
double sgpa2; //标准GPA值
public int psno //psno属性可读可写
{
get
{ return sno; }
set
{ sno = value; }
}
public string psname //psname属性可读可写
{
get
{ return sname; }
set
{ sname = value; }
}
public void setcourse(params Course[] course1) //设置课程
{
course = new Course[course1.Length];
for (int i = 0; i < course1.Length; i++)
course[i] = course1[i];
}
public void setscore(int[] score1) //设置分数
{
score = new int[score1.Length];
for (int i = 0; i < score1.Length; i&#