il系列文章之三:
array in il
正如题目所言,这一节我们研究il中的array(数组)。我们将看到如何定义一个数组,如何查询数组元数,使用for语句和foreach语句的异同。
先来看看我用c#写的一段程序:
using system;
class array1
{
public static void
{
int [] number;
number = new int [6];
for(int i = 0; i < 6; i++)
{
number[i] = i * i;