class Student
{
public Student() { }
public Student(int _stuId, string _stuName)
{
stuId = _stuId;
stuName = _stuName;
}
public int stuId = 0;
public string stuName = "";
public void Display()
{
Console.WriteLine(stuId + "," + stuName);
}
}
class Program
{
public static void Main(string[] args)
{
Student[] stu = new Student[3];
stu[0] = new Student(1, "
风晴雪");
stu[1] = new Student(2, "百里屠苏");
Student stu3 = new Student();
stu3.stuId = 3;
stu3.stuName = "
欧阳少恭";
stu[2] = stu3;
for (int i = 0; i < stu.Length; i++)
{
stu[i].Display();
}
Console.ReadLine();
}
}
追问请问第三行什么意思?能帮忙解释一下吗?