using System;
using System.Collections.Generic;
using System.Text;
namespace MyArray
{
public struct student
{
public string stuName;
public string stuNumber;
public student(string stuName, string stuNumber)
{
this.stuName = stuName;
this.stuNumber = stuNumber;
}
}
class Program
{
static void Main(string[] args)
{
student stu1 = new student();
stu1.stuNumber = "0102";
stu1.stuName = "李四";
Console.WriteLine("{0},{1}", stu1.stuName, stu1.stuNumber);
student stu = new student("王五","0101");
Console.WriteLine("{0},{1}", stu.stuName, stu.stuNumber);
}
}
}