public partial class Form1 : Form
{
Course[] csharp = new Course[5];
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Test c1 = new Test("Quiz",
new DateTime(2012, 6, 6), 86);
Test c2 = new Test("Mid-Term",
new DateTime(2012, 5, 6), 90);
Test c3 = new Test("Final",
new DateTime(2012, 4, 6), 87);
Test c4 = new Test("Quiz",
new DateTime(2012, 3, 6), 100);
Test c5 = new Test("Quiz",
new DateTime(2012, 2, 6), 66);
}
}
如何将我的测试 c5 添加到我的对象数组 csharp?我想向三个对象添加五种测试类型。请帮助我处于初学者水平。