日期:2014-05-17 浏览次数:20885 次
struct Student
{
public string Number;
public string name;
public string sex;
public string classNum;
public string birth;
};
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Student[] stu=new Student[5];
Student stu1;
stu1.Number = "0905606201";
stu1.name = "张三";
stu1.sex = "男";
stu1.classNum = "201";
stu1.birth = "1990-11-11";
Student stu2;
stu2.Number = "0905606202";
stu2.name = "李四";
stu2.sex = "男";
stu2.classNum = "202";
stu2.birth = "1991-11-11";
if(comboBox1.Text=="1")
{
textBox1.Text = stu1.Number;
textBox2.Text = stu1.name;
textBox3.Text = stu1.sex;
textBox4.Text = stu1.classNum;
&