namespace StudentStruct { //定义学生结构 public struct Student { public string Name; public bool Sex; } public class StudentStructClass { Student[] students = new Student[10];//定义学生结构的数组 } }